Displaying 1 result from an estimated 1 matches for "render_rjs_redirect".
2008 May 06
1
specifying output of render call
...,
First of all, thanks much for everyone''s input on my question last week
about spec''ing an invocation of super.
Here''s another question that seems resistant to my Google searching:
With this helper method (defined in a module and included in Rails
controllers):
def render_rjs_redirect(url = ''/'')
render :update do |page|
page << "location.href=''#{url}''"
end
end
Is it possible/advisable to specify either the block passed to render or the
output of the helper, something like below? The only way I have been able
so far to...