Redirect error on componenet


#1

ok, i’ve done a render_component(:controller => “user”, :action =>
“user_menu”); user_menu checks for session id, if does not exist,
render_component(:controller => “user”, :action => “login”) [all of this
is working fine, thanks]. when i try to login, the form action goes to
login_user, which tries to login via the User model and does
redirect_to(:action=>“index”) [at which point, i get a " Can only render
or redirect once per action"


#2

thanks. figured it out.

needed to remove render(:layout=>false) from login_user