Added new controller and view to show tags grouped alphabetically
This commit is contained in:
@@ -7,4 +7,10 @@ class TagsController < ApplicationController
|
||||
respond_with @all_tags
|
||||
|
||||
end
|
||||
|
||||
def alpha_grouped_index
|
||||
|
||||
@alpha_tags = Post::alphabetical_grouped_tags
|
||||
respond_with @alpha_tags
|
||||
end
|
||||
end
|
||||
|
||||
+6
-2
@@ -15,7 +15,7 @@ Timeoverflow::Application.routes.draw do
|
||||
resources :offers, concerns: :joinable do
|
||||
collection do
|
||||
get :dashboard
|
||||
end
|
||||
end
|
||||
end
|
||||
resources :inquiries, concerns: :joinable
|
||||
|
||||
@@ -52,6 +52,10 @@ Timeoverflow::Application.routes.draw do
|
||||
post :accept
|
||||
end
|
||||
|
||||
resource :tags, only: [:index]
|
||||
resource :tags, only: [:index] do
|
||||
collection do
|
||||
get "alpha_grouped_index"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user