Adam, I thought that would work too... but it doesn't !&nbsp; Setup a little test, and you'll see what I mean.<br>Doing this window.location thing is all I can get to work.&nbsp; Check this thread out:<br><a href="http://thread.gmane.org/gmane.comp.lang.ruby.rails/14202">
http://thread.gmane.org/gmane.comp.lang.ruby.rails/14202</a><br><br><br><br><div><span class="gmail_quote">On 1/30/06, <b class="gmail_sendername">Adam Denenberg</b> &lt;<a href="mailto:straightflush@gmail.com">straightflush@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">redirect_to :controller =&gt; &quot;admin&quot; , :action =&gt; &quot;index&quot;
<br><br>adam<br><br>On 1/30/06, Dylan Stamat &lt;<a href="mailto:dylans@gmail.com">dylans@gmail.com</a>&gt; wrote:<br>&gt; I would like to have a login box setup so that if incorrect info is<br>&gt; submitted, the box &quot;shakes&quot; via 
Effect.Shake.<br>&gt; If the correct information is submitted, I want to redirect to some other<br>&gt; page.<br>&gt;<br>&gt; The only solution I've found is the following, which is pretty ugly, as it<br>&gt; displays the javascript I'm invoking on the page prior to the redirect.
<br>&gt; Here is the code:<br>&gt;<br>&gt;<br>&gt; The Form<br>&gt; ============<br>&gt; &lt;%= form_remote_tag(:update&nbsp;&nbsp; =&gt; 'message',<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:complete =&gt;<br>&gt; evaluate_remote_response,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;<br>&gt; {:controller =&gt; 'login', :action =&gt; 'login'}) %&gt;<br>&gt;<br>&gt; The Action<br>&gt; ============<br>&gt; if logged_in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;render(:text =&gt; &quot;
window.location.href = '<a href="http://0.0.0.0:3000/admin';">http://0.0.0.0:3000/admin';</a>&quot;)<br>&gt; else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;render(:layout =&gt; false, :action =&gt; 'bad_login')&nbsp;&nbsp; &lt;-- which is just a<br>&gt; template with an 
Effect.Shake<br>&gt;<br>&gt;<br>&gt; So, is there any other way to do a redirect from an action via a<br>&gt; form_remote_tag than using the window.location hack ?<br>&gt; Crossing my fingers there is a way :)<br>&gt; TIA !
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Rails mailing list<br>&gt; <a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</a><br>&gt; <a href="http://lists.rubyonrails.org/mailman/listinfo/rails">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br>&gt;<br>&gt;<br>&gt;<br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org
</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails">http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br>