Example model: demo --app ----Controllers ------application_controler.rb ------demos_controller.rb ----Models ------demo.rb ----Views ------demos --------index.html.erb (I want to keep this) --------edit.html.erb (delete) --------new.html.erb (delete) --------show.html.erb (delete)
http://localhost:3000/demos/new (should not be a route) http://localhost:3000/demos/edit (should not be a route) http://localhost:3000/demos/show (should not be a route) I tried to create a new route: map.connect "*anything", :controller => 'rushing_offenses', :action => 'request_error' .. and built an request_error.html.erb file so that if anyone tried to go elsewhere while within that controller it would toss them to the request_error.html.erb file (but that's not working) I was trying to find more about RESTful routes but I'm just not finding what I'm looking for. Any help would be appreciated.. Thanks. -- 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 -~----------~----~----~----~------~----~------~--~---

