Big oops, sorry, I meant:
redirect_to :action => ''index''
and
redirect_to :controller => ''blah''
Brendan Lim wrote:> I call redirect_to => :action ''index'' many times
throughout a couple
> different methods. My problem with one of my methods (destroy) is that
> when I call:
>
> redirect_to => :action ''index''
>
> It takes me to /blah/index as opposed to /blah
>
> I''m quite stumped. I''ve even just tried:
>
> redirect_to => :controller ''blah''
>
> How can I get it so that it doesn''t append /index to the end?
This is
> only happening for one method, which isn''t any different from any
of the
> others.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---