Redirect user based on url entered?

Let’s say a user entered this url into the browser:

http://www.something.com/blarblar

how do i redirect the user to the index/main page if i don’t have a
blarblar controller?
basically i want to check for invalid urls passed in by user and
redirect them to the correct url/page~
any ideas? thanx !

check out this

http://actsasblog.wordpress.com/2006/10/16/url-validation-in-rubyrails/

Ratnavel S. wrote:

check out this

http://actsasblog.wordpress.com/2006/10/16/url-validation-in-rubyrails/

thanx a lot ! =D

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs