I believe the easiest way I could find was: map.connect "rushing_offenses/*anything", :controller => 'rushing_offenses', :action => 'index'
.. which meant anything after http://localhost:3000/rushing_offenses/..... .. would automatically redirect back to the index for rushing_offenses But, is this a bad thing to do this? I basically don't want anyone to be able to access new/delete/edit/update etc.. for specific model controllers. The model controllers I'm referring to are those that just are available for viewing.. I have the following in for generic error handling/requests : # Index Page map.root :controller => 'page' map.connect "*anything", :controller => 'page', :action => 'request_error' So, when they enter anything that doesn't below to a particular controller or an invalid page they get redirected to a request_error page. This handles invalid URLs on my site. I understand that RESTful automatically creates the default views to provide stateless viewing. In some cases, I just don't see the need for those particular views. Again, I would appreciate a response from anyone who understands what I'm trying to do and to provide a best practices method to ensure I'm doing this process properly. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

