Sha256: ff5c12ab0b5be59a82907f2c96b7643850cd4b30590cca66e8dfa8703319b349
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
Dummy::Application.routes.draw do resources :others resources :users resources :pages root :to => 'pages#show', :id => 'home' match 'contact_us' => 'pages#show', :id => 'contact', :via => :get match 'all_users' => 'users#index', :via => :get match 'home' => redirect("/"), :via => :get resources :pages, :only => [:show], :path => "/", :as => :page_permalink, :constraints => PageConstraint.new resources :users, :only => [:show], :path => "/", :as => :user_profile, :constraints => UserConstraint.new resources :others, :only => [:show], :path => "/", :as => :other_permalink end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
valid_route-0.0.1 | test/dummy/config/routes.rb |