[Nitro] Trapping unhandled URLs

James Britt james_b at neurogami.com
Mon Nov 7 23:53:07 EST 2005


I'm getting ready to deploy a public Nitro app, and would like it to be 
as robust as possible.  Right now, if one calls int a bogus URL, it 
displays an error, like this:


Path: /sddsf
undefined method `sddsf_action' for #
Click here to reload.
Click here to go to the referrer or the home page.

I'd like to ensure that URLs that do not map to some sensible action are 
  simply rendered as a call to the main index page, but do not know how 
to do this.

Any suggestions?


Thanks,

James

-- 

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools



More information about the Nitro-general mailing list