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"
thanks. figured it out. needed to remove render(:layout=>false) from login_user matthew collins wrote:> 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" > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >