Why is it that <%= link_to_remote "add round", :url => { :action => :add_round }, :class => "blueL", :update => "rounds", :method => "put" %> works while <%= submit_to_remote ''name'', "add round", :url => { :action => :add_round }, :html => { :class => "blueL" }, :update => "rounds", :method => "put" %> does not? --~--~---------~--~----~------------~-------~--~----~ 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 Apr 18, 2:19 am, edberner <eber...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Why is it that > <%= link_to_remote "add round", :url => { :action > => :add_round }, :class => "blueL", :update => "rounds", :method => > "put" %> > works while > <%= submit_to_remote ''name'', "add round", :url => { :action > => :add_round }, :html => { :class => "blueL" }, :update => > "rounds", :method => "put" %> > does not?Is your submit_to_remote in a form ? it won''t work if it''s not (since what it does is submit its form to the specified URL) Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
No... So I _must_ use link_to? Cause I don''t see a button to remote. On Apr 18, 2008, at 5:37 AM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote:> > > > On Apr 18, 2:19 am, edberner <eber...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Why is it that >> <%= link_to_remote "add round", :url => { :action >> => :add_round }, :class => "blueL", :update => "rounds", :method => >> "put" %> >> works while >> <%= submit_to_remote ''name'', "add round", :url => { :action >> => :add_round }, :html => { :class => "blueL" }, :update => >> "rounds", :method => "put" %> >> does not? > > Is your submit_to_remote in a form ? it won''t work if it''s not (since > what it does is submit its form to the specified URL) > > Fred > >--~--~---------~--~----~------------~-------~--~----~ 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 18 Apr 2008, at 13:02, Ellis Berner wrote:> > No... So I _must_ use link_to? Cause I don''t see a button to remote. >There''s always button_to_function(''Foo'', remote_function(...)). Or style the link to look like a button. Fred> On Apr 18, 2008, at 5:37 AM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> wrote: > >> >> >> >> On Apr 18, 2:19 am, edberner <eber...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Why is it that >>> <%= link_to_remote "add round", :url => { :action >>> => :add_round }, :class => "blueL", :update => "rounds", :method => >>> "put" %> >>> works while >>> <%= submit_to_remote ''name'', "add round", :url => { :action >>> => :add_round }, :html => { :class => "blueL" }, :update => >>> "rounds", :method => "put" %> >>> does not? >> >> Is your submit_to_remote in a form ? it won''t work if it''s not (since >> what it does is submit its form to the specified URL) >> >> Fred >>> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
edberner wrote:> Why is it that > <%= link_to_remote "add round", :url => { :action > => :add_round }, :class => "blueL", :update => "rounds", :method => > "put" %> > works while > <%= submit_to_remote ''name'', "add round", :url => { :action > => :add_round }, :html => { :class => "blueL" }, :update => > "rounds", :method => "put" %> > does not?What do you mean by "doesn''t work"? Got an error message? -- 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 -~----------~----~----~----~------~----~------~--~---
It''s just not functional. I want it to render a partial in the rounds id, while adding the models to the database. On Apr 18, 2008, at 1:24 PM, Daniel Waite wrote:> > edberner wrote: >> Why is it that >> <%= link_to_remote "add round", :url => { :action >> => :add_round }, :class => "blueL", :update => "rounds", :method => >> "put" %> >> works while >> <%= submit_to_remote ''name'', "add round", :url => { :action >> => :add_round }, :html => { :class => "blueL" }, :update => >> "rounds", :method => "put" %> >> does not? > > What do you mean by "doesn''t work"? > > Got an error message? > -- > 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 -~----------~----~----~----~------~----~------~--~---
Ellis Berner wrote:> It''s just not functional.Hmm... gonna need more information than that. 1. Have you checked your development log? 2. Do you have the Firebug extension for Firefox to look at the content of the Ajax request? 3. Did you include the correct JavaScript files? -- 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 -~----------~----~----~----~------~----~------~--~---