Hi, I just started playing to add some ajax to my RoR application. works.. but something weird is going on that is most problably a newbee error than anything else. I have this code in one of my views.. <div id="list_jids"> <%= link_to_remote( "click here to show your jid''s", :update => "list_jids", :url =>{ :controller => ''xmpp'', :action => ''listadmin'', :id => @authreg.id } ) %> when I click the link "click here to show your jid''s" it shows the jid''s but it loads all my menus again like basically reading my application.rhtml file again instead of just showing the information pulled from my xmpp controller.. Any ideas on how to clean the results so it loads the results not the whole page inside the page again? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
render with render :layout => false ? On Mon, Apr 28, 2008 at 9:24 PM, rek2 <rek2-zTjyZANo7oz3ktU1ABlop6HonnlKzd3f@public.gmane.org> wrote:> > Hi, I just started playing to add some ajax to my RoR application. > works.. but something weird is going on that is most problably a newbee > error than anything else. > I have this code in one of my views.. > <div id="list_jids"> > <%= link_to_remote( "click here to show your jid''s", > :update => "list_jids", > :url =>{ :controller => ''xmpp'', :action => > ''listadmin'', :id => @authreg.id } ) %> > > > when I click the link "click here to show your jid''s" > it shows the jid''s but it loads all my menus again like basically > reading my application.rhtml file > again instead of just showing the information pulled from my xmpp > controller.. > Any ideas on how to clean the results so it loads the results not the > whole page inside the page again? > > > Thanks. > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
exactly :) *render :layout=> false* at end of action in controller On Apr 29, 6:37 am, "Roger Pack" <rogerpack2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> render with > render :layout => false > ? > > On Mon, Apr 28, 2008 at 9:24 PM, rek2 <r...-zTjyZANo7oz3ktU1ABlop6HonnlKzd3f@public.gmane.org> wrote: > > > Hi, I just started playing to add some ajax to my RoR application. > > works.. but something weird is going on that is most problably a newbee > > error than anything else. > > I have this code in one of my views.. > > <div id="list_jids"> > > <%= link_to_remote( "click here to show your jid''s", > > :update => "list_jids", > > :url =>{ :controller => ''xmpp'', :action => > > ''listadmin'', :id => @authreg.id } ) %> > > > when I click the link "click here to show your jid''s" > > it shows the jid''s but it loads all my menus again like basically > > reading my application.rhtml file > > again instead of just showing the information pulled from my xmpp > > controller.. > > Any ideas on how to clean the results so it loads the results not the > > whole page inside the page again? > > > Thanks.--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi... I was all excited to try this after work.. got home and nothing.. I still have the same issue... I added what you guys suggested to this: <%= render :layout => false, :partial => ''list'', :collection => @xmppr %> and I still get the whole page in.. :-( alexey.Creopolis wrote:> exactly :) > > *render :layout=> false* > > at end of action in controller > > On Apr 29, 6:37 am, "Roger Pack" <rogerpack2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> render with >> render :layout => false >> ? >> >> On Mon, Apr 28, 2008 at 9:24 PM, rek2 <r...-zTjyZANo7oz3ktU1ABlop6HonnlKzd3f@public.gmane.org> wrote: >> >> >>> Hi, I just started playing to add some ajax to my RoR application. >>> works.. but something weird is going on that is most problably a newbee >>> error than anything else. >>> I have this code in one of my views.. >>> <div id="list_jids"> >>> <%= link_to_remote( "click here to show your jid''s", >>> :update => "list_jids", >>> :url =>{ :controller => ''xmpp'', :action => >>> ''listadmin'', :id => @authreg.id } ) %> >>> >>> when I click the link "click here to show your jid''s" >>> it shows the jid''s but it loads all my menus again like basically >>> reading my application.rhtml file >>> again instead of just showing the information pulled from my xmpp >>> controller.. >>> Any ideas on how to clean the results so it loads the results not the >>> whole page inside the page again? >>> >>> Thanks. >>> > > >-- A Spectre is haunting multinational capitalism--the spectre of free information. All the powers of ``globalism'''' have entered into an unholy alliance to exorcize this spectre: Microsoft and Disney, the World Trade Organization, the United States Congress and the European Commission. Eben Moglen from the FSF. http://emoglen.law.columbia.edu/publications/dcm.html Solidarity: http://www.dailyradical.org http://www.diarioradical.org http://www.spboston.org http://www.binaryfreedom.info --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
that render :layout => false goes at the end of the controller method. On Tue, Apr 29, 2008 at 10:44 PM, rek2 <rek2-zTjyZANo7oz3ktU1ABlop6HonnlKzd3f@public.gmane.org> wrote:> > Hi... I was all excited to try this after work.. got home and nothing.. > I still have the same issue... I added what you guys suggested to this: > <%= render :layout => false, :partial => ''list'', :collection => @xmppr %> > > and I still get the whole page in.. :-( > > > > > alexey.Creopolis wrote: > > exactly :) > > > > *render :layout=> false* > > > > at end of action in controller > > > > On Apr 29, 6:37 am, "Roger Pack" <rogerpack2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >> render with > >> render :layout => false > >> ? > >> > >> On Mon, Apr 28, 2008 at 9:24 PM, rek2 <r...-zTjyZANo7oz3ktU1ABlop6HonnlKzd3f@public.gmane.org> wrote: > >> > >> > >>> Hi, I just started playing to add some ajax to my RoR application. > >>> works.. but something weird is going on that is most problably a newbee > >>> error than anything else. > >>> I have this code in one of my views.. > >>> <div id="list_jids"> > >>> <%= link_to_remote( "click here to show your jid''s", > >>> :update => "list_jids", > >>> :url =>{ :controller => ''xmpp'', :action => > >>> ''listadmin'', :id => @authreg.id } ) %> > >>> > >>> when I click the link "click here to show your jid''s" > >>> it shows the jid''s but it loads all my menus again like basically > >>> reading my application.rhtml file > >>> again instead of just showing the information pulled from my xmpp > >>> controller.. > >>> Any ideas on how to clean the results so it loads the results not the > >>> whole page inside the page again? > >>> > >>> Thanks. > >>> > > > > > > > > -- > A Spectre is haunting multinational capitalism--the spectre of free information. > All the powers of ``globalism'''' have entered into an unholy alliance to exorcize this spectre: > Microsoft and Disney, the World Trade Organization, the United States Congress and the European Commission. > Eben Moglen from the FSF. > http://emoglen.law.columbia.edu/publications/dcm.html > > Solidarity: > http://www.dailyradical.org > http://www.diarioradical.org > http://www.spboston.org > http://www.binaryfreedom.info > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---