I have a controller named results_controller. It uses
resources :results
in the router.
One problem is that I don’t want people to be able to see the results page by typing in the following
www.example.com/results
Is there a way to put a redirect on that http://www.example.com/results without interfering with any of the other resources :results?
The simplest way would be to not generate that specific route:
Here’s a good intro to rails routing: http://guides.rubyonrails.org/routing.html