can anyone help me out?
On 3/31/06, Manish Shah <mnshah@gmail.com> wrote:>
> 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.
>
> 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.
>
> For example: i have controller_a and i want to get to its index action.
> I know i can just use http://www.myapp.com/controller_a
>
> 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''
>
> Thanks for the help.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/e48d8a43/attachment-0001.html