Hacker News new | past | comments | ask | show | jobs | submit login

You can do it easily in Rails without a redirect too, and without regex as used in Django.

In routes.rb for example: map.login '/login.php', :controller => 'sessions', :action => 'new'

But I suppose that wouldn't make for a very funny April Fool's joke.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: