can anyone help me out?<br><br><div><span class="gmail_quote">On 3/31/06, <b class="gmail_sendername">Manish Shah</b> <<a href="mailto:mnshah@gmail.com">mnshah@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">I'm trying to reduce the size of urls in my app and i was wondering how i can get all links to an index action to leave out the 'index'. In my routes.rb, i have it setup to recognize the controller and default to the index action.
<br><br>But is there a way to make it so that the 'index' portion in the url is not shown to the user? This is mostly a concern where in other controllers i use redirect_to and link_to that index action of a particular controller.
<br><br>For example: i have controller_a and i want to get to its index action. I know i can just use <a href="http://www.myapp.com/controller_a" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.myapp.com/controller_a
</a><br><br>but when i do link_to and redirect_to :controller => controller_a, it shows controller_a/index in the url. I'd like to leave off the 'index'
<br><br>Thanks for the help.<br>
</div></blockquote></div><br>