We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62d834 commit 30d5d00Copy full SHA for 30d5d00
demo/app/controllers/docs/pages_controller.rb
@@ -1,5 +1,7 @@
1
module Docs
2
class PagesController < ApplicationController
3
+ rescue_from(Decant::FileNotFound) { |exception| raise ActiveRecord::RecordNotFound, exception.message }
4
+
5
def index
6
first_page = all_pages.first
7
redirect_to(docs_page_path(first_page.slug))
0 commit comments