Hi guys Here is my problem... Using Ajax to update a div with link_to_remote. Problem is I have a layout defined in my class, so, the div gets the layout when I call the method, how di I tell a method to ingore the layout? Cheers. Pieter. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060814/a3605bf7/attachment.html
> > > Using Ajax to update a div with link_to_remote. Problem is I have a layout > defined in my class, so, the div gets the layout when I call the method, how > di I tell a method to ingore the layout? >def update_page render(:layout => false) ... end -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060814/fa0d4a4e/attachment.html
ty On 8/14/06, Jim Lindley <jimlindley@gmail.com> wrote:> > > > Using Ajax to update a div with link_to_remote. Problem is I have a > > layout defined in my class, so, the div gets the layout when I call the > > method, how di I tell a method to ingore the layout? > > > > > > def update_page > render(:layout => false) > ... > end > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060814/01ea530c/attachment.html