On May 5, 1:08 am, David Zhu <[email protected]> wrote: > Ritchie, > > you wrote "You can't redirect > multiple times per action but you can have multiple possible redirects > in an action as long as only one is executed" > > so how do i do that? An if/else statment doesn't work in this case, is > there another way?
Well in a nutshell if current_user redirect_to user_path(current_user) else redirect_to home_path end (assuming the existance of various named routes) Show us what you've attempted. Fred > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

