app/controllers/manifest/pages_controller.rb in manifest-rails-0.0.4 vs app/controllers/manifest/pages_controller.rb in manifest-rails-0.1.0

- old
+ new

@@ -1,11 +1,8 @@ class Manifest::PagesController < Manifest::ManifestController - before_filter :authorize before_filter :authorize_admin, except: [:index, :show] - layout 'manifest/manifest' - def index @pages = Page.all end def show @@ -18,11 +15,11 @@ def create @page = Page.new(params[:page]) if @page.save - redirect_to manifest_pages_path + redirect_to manifest_page_path(@page) else render 'new' end end @@ -40,10 +37,10 @@ end end def destroy @page = Page.find(params[:id]) - @page.delete + @page.destroy redirect_to manifest_pages_path end end