Class: Admin::Blog::CategoriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Admin::Blog::CategoriesController
- Defined in:
- app/controllers/admin/blog/categories_controller.rb
Overview
@Name: Admin Blog Categories controller @Purpose: Creating , modifying, deleting blog posts for the cms @Created date: 08-06-2012 @Modified Date: 09-06-2012
@Company : Mindfire Solutions
Instance Method Summary collapse
-
#create ⇒ Object
Create method for creating blog category parameters: title.
Methods inherited from ApplicationController
Methods included from BlogHelper
#blog_archive_list, #blog_post_teaser, #next_or_previous?
Instance Method Details
#create ⇒ Object
Create method for creating blog category parameters: title
32 33 34 35 36 37 38 39 40 |
# File 'app/controllers/admin/blog/categories_controller.rb', line 32 def create @blog_category = BlogCategory.new(params[:blog_category]) #Creating BlogCategory model object with the params blog_post if @blog_category.save redirect_to admin_blog_categories_path else render 'new' end end |