app/controllers/georgia/pages_controller.rb in georgia-0.7.0 vs app/controllers/georgia/pages_controller.rb in georgia-0.7.1
- old
+ new
@@ -44,10 +44,10 @@
# Update page settings
def update
Georgia::Page.update_tree(params[:page_tree]) if params[:page_tree]
if @page.update_attributes(params[:page])
respond_to do |format|
- format.html { redirect_to [:settings, @page], notice: "#{@page.title} was successfully updated." }
+ format.html { render :settings, notice: "#{@page.title} was successfully updated." }
format.js { head :ok }
end
else
respond_to do |format|
format.html { redirect_to [:settings, @page], notice: "Oups. Something went wrong." }