Hello,
I have a method called ''take_part'' in a controller called
''group''.
Currently I call this method from a view inside the group controller
called ''show'' and after executing its function I do a
redirect_to
:controller => ''group'', :action =>
''show'', :id => params[:group_id]
Now I want to call this function from other controllers like for example
from the controller ''event'', inside the view
''show'', but I want to
redirect to this controller and this view.
How I can redirect to the view that called the function?
Thanks.
--
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
-~----------~----~----~----~------~----~------~--~---