app/controllers/spina/admin/pages_controller.rb in spina-0.6.26 vs app/controllers/spina/admin/pages_controller.rb in spina-0.6.27

- old
+ new

@@ -23,11 +23,11 @@ def create @page = Page.new(page_params) add_breadcrumb I18n.t('spina.pages.new') if @page.save - redirect_to spina.admin_pages_url + redirect_to spina.edit_admin_page_url(@page) else @page_parts = @page.page_parts render :new end end @@ -41,10 +41,10 @@ def update @page = Page.find(params[:id]) add_breadcrumb @page.title respond_to do |format| if @page.update_attributes(page_params) - format.html { redirect_to spina.admin_pages_url } + format.html { redirect_to spina.edit_admin_page_url(@page) } format.js else format.html do @page_parts = @page.page_parts render :edit