How to avoid links to map.root getting shortened?

Posted by Guy C on Stack Overflow See other posts from Stack Overflow or by Guy C
Published on 2010-03-30T23:31:46Z Indexed on 2010/03/30 23:33 UTC
Read the original article Hit count: 207

Filed under:

I have a Reports controller and various reports:

http://localhost/reports/main/this_month
http://localhost/reports/main/last_month
http://localhost/reports/main/this_year

I wanted http://localhost to default to http://localhost/reports/main/this_month. That is easy enough using map.root in my routes.rb.

However when I do this any links to http://localhost/reports/main/this_month are now shortened to just http://localhost. I want the links to stay full

© Stack Overflow or respective owner

Related posts about ruby-on-rails