removing one route from a resource in rails

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 into a browser and see the same page as /final

What can I do to stop someone from typing in

For example, if someone understands rails set up they can see a page I don't want them to see


You'd add an exception for that case:

resources :results, :except => :index

Need Your Help

Sum of two columns by id to one field

mysql sql codeigniter phpmyadmin

i need to make sum of two columns by id to one field by that has the same id

Best way to set up a NSViewController initialized with initWithNibName:bundle:?

ios osx initialization nsviewcontroller awakefromnib

i have a subclass of NSViewController that loads its view from a nib (with initWithNibName:bundle: and it is the file's owner of that nib).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.