Class: Blog::SluggablesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/blog/sluggables_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#can_manage_blogs, #can_manage_contexts

Methods included from BlogsHelper

#allowable_html, #construct_blog_path, #posted_by_on

Instance Method Details

#createObject



4
5
6
7
8
9
10
11
12
# File 'app/controllers/blog/sluggables_controller.rb', line 4

def create

  if params[:slug].present?
    render :text => params[:slug].make_url_friendly
  else
    render :text => '', :status => 400
  end

end