Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/static_stuff/routes.rb
Instance Method Summary collapse
Instance Method Details
#static_pages(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/static_stuff/routes.rb', line 3 def static_pages( = {}) namespace :static_stuff, path: '/', as: '' do .reverse_merge!( to: 'pages#show', as: :pages, constraints: { page: /[[[:alnum:]]\-_\/]+/ } ) get ':page', end end |