Max Williams wrote: > <%= button_to_remote "Delete this sku", > music_service_sku_path(@music_service, sku), :method => :delete %>
Never mind - the problem was that i had to pass the path as the :url option, ie <%= button_to_remote "Delete this sku", :url => music_service_sku_path(@music_service, sku), :method => :delete %> doh. I get mixed up with this stuff because with link_to you just pass the path (like in my original example) but in link_to_remote you have to put it in the :url option. Anyway, thanks for reading :) -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---