brianp wrote: > Hey, > I was wondering. If someone travels to a url ie. > app.com/controller/method > > and method does not exist. How do i present them with a page not found > error instead of getting Rails method not found errors? > > thanks, > bp
Brian visit http://www.classifiedscript.in and download railslist. It drastically increases your learning speed. for your specific question, look into application controller. For a better understanding go to Ryan's railscasts. They are superb. in your application controller you can use def rescue_with_handler(exception) render :file => "#{RAILS_ROOT}/public/404.html" end -- 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 -~----------~----~----~----~------~----~------~--~---

