Hello I have a web site with a feature that works perfectly. And I Raised included within another site in a layer. I am changing link_to by link_to_remote, but rhtml loading After a link_to_remote shows anything but what is inside a form_tag. We must put something on the forms to display with ajax? I tried to change the form From: <% = form_tag: action => ''list'': method => "get"%> A: <% = form_remote_tag (: update => "m_content" : Url => (: action => "list"))%> But the same thing happens to me ... This is the call: <% = Link_to_remote (image_tag ( "next.gif") : Update => "m_content" : Url => (: action => ''list''))%> Thank you -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Davicín .. schrieb:> Hello > > I have a web site with a feature that works perfectly. And I > Raised included within another site in a layer. > I am changing link_to by link_to_remote, but rhtml loading > After a link_to_remote shows anything but what is inside a > form_tag. > > We must put something on the forms to display with ajax?Did you include the javascript files? <%= javascript_include_tag(:all)%> --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Did you include the javascript files? > > <%= javascript_include_tag(:all)%>I have included this <%= javascript_include_tag :defaults %> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Sun, 04 Nov 2007 12:47:44 +0100, Davicín .. wrote:> Hello > > I have a web site with a feature that works perfectly. And I > Raised included within another site in a layer. > I am changing link_to by link_to_remote, but rhtml loading > After a link_to_remote shows anything but what is inside a > form_tag. > > We must put something on the forms to display with ajax? > > I tried to change the form > > From: > <% = form_tag: action => ''list'': method => "get"%> > > A: > <% = form_remote_tag (: update => "m_content" > : Url => (: action => "list"))%> > > But the same thing happens to me ... > > This is the call: > <% = Link_to_remote (image_tag ( "next.gif") > : Update => "m_content" > : Url => (: action => ''list''))%>There''s no camelcasing of symbol names in rails. Everything is lowercase and underscore separated, nor is there a space separating the colon and the symbol name. :update not : Update, :url not : Url. Steve --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> There''s no camelcasing of symbol names in rails. Everything is lowercase > and underscore separated, nor is there a space separating the colon and > the symbol name. :update not : Update, :url not : Url.Yes it has been a problem to copy and paste... Now she is well and I still have the same problem :( From: <% = form_tag: action => ''list'', :method => "get"%> A: <% = form_remote_tag (:update => "m_content", :url => (:action => "list"))%> This is the call: <% = Link_to_remote (image_tag ( "next.gif"), :update => "m_content", :url => (:action => ''list''))%> Thank you -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello. I do not know if that will affect all rhtml am updating layer m_content. And these forms are within this layer ... Thanks again. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---