Displaying 1 result from an estimated 1 matches for "double_render".
2006 Feb 01
1
detecting whether a request comes from render_component
...enders, since
they just add extra lines to my log (I guess I could exclude identical
rows at the db level).
I''m thinking of something like the xhr? method that allows a controller
to check whether a request came from an ajax submission.
I was guessing that the same check that catches the double_render error
might be used, but the check it uses (performed?) is a private method. I
guess I could try re-rendering the same controller/action and test
whether it leads to a DoubleRender error, but I imagine that would be
expensive.
Ideally some kind of :component => true element/value in the options...