config/routes.rb in scrapbook-0.2.0 vs config/routes.rb in scrapbook-0.2.1
- old
+ new
@@ -9,8 +9,8 @@
get ':book', to: 'pages#index', constraints: {book: book_regex}
root 'pages#index'
get '.raw/:book/pages/*id', to: 'pages#raw', as: :raw_page,
constraints: {book: book_regex, id: /.*/}, defaults: {raw: true}
- get ':book/*id', to: 'pages#show', constraints: {book: book_regex, id: /.*/}
+ get ':book/*id', to: 'pages#show', constraints: {book: book_regex, id: /.*/}, as: :book_page
get '*id', to: 'pages#show', constraints: {id: /.*/}, as: :short_page
end