search for: doublerend

Displaying 4 results from an estimated 4 matches for "doublerend".

Did you mean: doubleregs
2006 Apr 07
0
render_to_string and DoubleRender error
Hi all, I''m trying to use render_to_string in a controller in order to make an output file for download, and then redirect to a "Thank you for downloading" page. Of cource, this is not possible since one cannot have a "render" and "redirect" in the same action. Anyone know how I can do this? -cal
2006 Feb 01
1
detecting whether a request comes from render_component
...troller 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 would be cool ... CHEERS> SAM
2012 Feb 01
6
Does Devise make use of a "status" method? Weird bug.
...nController::Base instead, thus avoiding that status method, then this error goes away. I''m guessing that the problem goes a little something like this, "Successful login wants to do a redirect, but then control moves on to the status method which tries to do a render, and throws that DoubleRender error." Take out the extra render, and it works. What I can''t figure out for the life of me is how Devise is getting there in the first place! The problem is coming from the SessionsController#create method, but this is just the stock version I''ve done nothing do it: #...
2006 May 17
9
Render No Layout?
Hi guys, Am having a problem. I have this def in my index controller that works like this: def do_something $a = variable1 $b = variable2 $c = variable3 $d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'', ''#{$a} - #{$b}''); \n </script>" $trigger = "1" render(:partial =>