Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/journal/routing.rb
Instance Method Summary collapse
- #mount_journal_categories ⇒ Object
- #mount_journal_categories_crud ⇒ Object
- #mount_journal_pages ⇒ Object
- #mount_journal_pages_crud ⇒ Object
- #mount_journal_posts ⇒ Object
- #mount_journal_posts_crud ⇒ Object
Instance Method Details
#mount_journal_categories ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/journal/routing.rb', line 35 def mount_journal_categories get '/:slug/preview' => 'journal_categories#preview', as: :preview_journal_category, constraints: ::Constraints::JournalCategories get '/:slug' => 'journal_categories#show', as: :show_journal_category, constraints: ::Constraints::JournalCategories end |
#mount_journal_categories_crud ⇒ Object
11 12 13 |
# File 'lib/journal/routing.rb', line 11 def mount_journal_categories_crud resources :journal_categories, controller: 'journal_categories' end |
#mount_journal_pages ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/journal/routing.rb', line 26 def mount_journal_pages get '/:slug/preview' => 'journal_pages#preview', as: :preview_journal_page, constraints: ::Constraints::JournalPages get '/:slug' => 'journal_pages#show', as: :show_journal_page, constraints: ::Constraints::JournalPages end |
#mount_journal_pages_crud ⇒ Object
3 4 5 |
# File 'lib/journal/routing.rb', line 3 def mount_journal_pages_crud resources :journal_pages, controller: 'journal_pages' end |
#mount_journal_posts ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/journal/routing.rb', line 15 def mount_journal_posts get '/:hex/preview' => 'journal_posts#preview', as: :preview_journal_post get '/:hex/:slug' => 'journal_posts#show', as: :show_journal_post, constraints: ::Constraints::JournalPosts get '/:hex' => 'journal_posts#redirect', as: :journal_post_short, constraints: ::Constraints::JournalPosts end |
#mount_journal_posts_crud ⇒ Object
7 8 9 |
# File 'lib/journal/routing.rb', line 7 def mount_journal_posts_crud resources :journal_posts, controller: 'journal_posts' end |