right, i understand..thats what i did

heres my code-

if current_user

  redirect_to current_user_path

elseif current_admin

  redirect_to current_admin_path

elseif current_secretary
  redirect_to current_secretary_path

else
@greeting = "Hello Guest"
end




but its saying that i have multiple rediects per action, and i do, but
apparently rails thinks all of them will get executed? thats my
error :-\

any suggestions? thanks

-- 
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.

Reply via email to