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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 On 10/25/06, Patrick Aljord <patcito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
render :nothing => true Note: in Safari, this renders a single space. Jason On 10/25/06, Patrick Aljord <patcito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
ok thanx a lot to both. On 10/25/06, Vishnu Gopal <g.vishnu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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 > > > On 10/25/06, Patrick Aljord <patcito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > 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 > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---