hey all, I would like to do something like:
if @mything.update_attributes(params[:mything])
render_a_blank_page
end
I tried something like:
if @mything.update_attributes(params[:mything])
render :update do |page|
page << nil
end
but I get an RJS error.
Any idea how to do this?
thanx in advance
Pat
If you’d like your RJS action to do ‘nothing’, render :nothing => true works fine. If you’d like your whole page to be redirected to a blank page, do page.redirect_to “/blank.html” where blank.html is a blank html file.
Vish
render :nothing => true
Note: in Safari, this renders a single space.
Jason