Class: DmForum::Admin::ForumSitesController
- Inherits:
-
AdminController
- Object
- AdminController
- DmForum::Admin::ForumSitesController
- Includes:
- PermittedParams
- Defined in:
- app/controllers/dm_forum/admin/forum_sites_controller.rb
Overview
This controller is now deprecated. At the moment I find no use for the enableg, tagline, or description.
Instance Method Summary collapse
-
#edit ⇒ Object
GET /admin/fms/forum_site/edit ——————————————————————————.
-
#show ⇒ Object
GET /admin/fms/forum_site ——————————————————————————.
-
#update ⇒ Object
PUT /admin/fms/forum_site ——————————————————————————.
Methods included from PermittedParams
#forum_category_params, #forum_comment_params, #forum_params, #forum_site_params, #forum_topic_params
Instance Method Details
#edit ⇒ Object
GET /admin/fms/forum_site/edit
20 21 |
# File 'app/controllers/dm_forum/admin/forum_sites_controller.rb', line 20 def edit end |
#show ⇒ Object
GET /admin/fms/forum_site
11 12 13 14 15 |
# File 'app/controllers/dm_forum/admin/forum_sites_controller.rb', line 11 def show unless @forum_site @forum_site = ForumSite.create(enabled: true) end end |
#update ⇒ Object
PUT /admin/fms/forum_site
25 26 27 28 29 30 31 |
# File 'app/controllers/dm_forum/admin/forum_sites_controller.rb', line 25 def update if @forum_site.update_attributes(forum_site_params) redirect_to dm_forum.admin_forum_site_url, notice: "Forum settings were successfully updated." else render action: :edit end end |