Fixes issue where custom content wouldn't get created.
This commit is contained in:
parent
7d30d00ec4
commit
c11c18c445
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user