Nope, there are absolutely no calls to render or redirect_to on the
stack. I wish there were, that''s the first thing I checked! Here is
the backtrace:
ActionController::DoubleRenderError:
`redirect_to''
`redirect''
`respond''
`respond''
`respond_to''
`redirect''
`validate_user_identity''
`call_filters''
`call_filters''
`before_action''
`perform_action_without_benchmark''
`perform_action_without_rescue''
`measure''
`perform_action_without_rescue''
`perform_action''
`process_without_filters''
`process_without_session_management_support''
`process''
`dispatch''
`process_request''
`process!''
`each_cgi''
`each_cgi''
`process!''
`process!''
dispatch.fcgi:24
You can see my plugin''s calls to
''validate_user_identity'' and
''redirect'' on the stack, but no calls to
''redirect_to'' or ''render''.
Basically, stuff works when I don''t have a respond_to but breaks when
I do have a redirect_to. This is on 1.1.1, fwiw.
--
Ryan
On 4/7/06, Francois Beausoleil <francois.beausoleil@gmail.com>
wrote:> 2006/4/7, Ryan Nielsen <rpnielsen@gmail.com>:
> > def redirect(url)
> > respond_to do |wants|
> > wants.html { redirect_to url }
> > wants.js { render :update do |page| page.redirect_to url end }
> > end
> > end
>
> Are you sure you are not doing any render work in the CALLERs of redirect ?
>
> Check the stacktrace to see where the second render occurs.
>
> Hope that helps,
> --
> Fran?ois Beausoleil
> http://blog.teksol.info/
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>