Forum: Ruby on Rails redirect error on componenet

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
matthew collins (Guest)
on 2006-02-17 03:27
(Received via mailing list)
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"
matthew collins (Guest)
on 2006-02-17 03:39
(Received via mailing list)
thanks.  figured it out.

needed to remove  render(:layout=>false) from login_user
This topic is locked and can not be replied to.