Reputation: 42069
I created an app and rails created resources :results
I created the following custom route which works
match '/final', :to => 'results#index'
however, due to the resources :results
the user can still type in www.domainname.com/results
into a browser and see the same page as /final
What can I do to stop someone from typing in www.domainame.com/results
For example, if someone understands rails set up they can see a page I don't want them to see
Upvotes: 0
Views: 45
Reputation: 9110
You'd add an exception for that case:
resources :results, :except => :index
Upvotes: 1