Class: Formol::CategoriesController
Instance Method Summary
collapse
#last_page_forum_topic_path, #paginated_forum_topic_post_path, #per_page, #topic_last_page_number, #topic_post_page_number
Instance Method Details
#index ⇒ Object
5
6
7
8
9
10
11
|
# File 'app/controllers/formol/categories_controller.rb', line 5
def index
formol_authorize!(current_formol_user, :read_category)
@categories = Formol::Category.ready_for_listing
respond_with(@categories)
end
|
#show ⇒ Object
13
14
15
16
17
18
19
|
# File 'app/controllers/formol/categories_controller.rb', line 13
def show
formol_authorize!(current_formol_user, :read_category)
@category = Formol::Category.find(params[:id])
respond_with(@category)
end
|