Fixes issue where custom content wouldn't get created.

This commit is contained in:
Dirk Kelly 2011-02-03 07:40:06 +08:00
parent 7d30d00ec4
commit c11c18c445
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ module Admin
end end
def create def create
create! do |success, failure| @content = @content_type.contents.create(params[:content])
success.html { redirect_to edit_admin_content_url(@content_type.slug, @content) }
end respond_with(@content, :location => edit_admin_content_url(@content_type.slug, @content))
end end
def update def update