in <%= link_to_remote ... :with => %!id=''img_name=#{@images_to_dsp[i].to_s}&img_nr=2''!%> becomes parameters:id=''img_name=myimg.jpg&img_nr=2'' i need & for multiple parameters... -- 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 -~----------~----~----~----~------~----~------~--~---
Rob Biedenharn
2007-Nov-23 14:49 UTC
Re: & in link_to_remote... :with => "A=1&B=2" becomes &
On Nov 22, 2007, at 5:40 PM, Zoran Kikic wrote:> in > <%= link_to_remote ... :with => > %!id=''img_name=#{@images_to_dsp[i].to_s}&img_nr=2''!%> > > becomes > > parameters:id=''img_name=myimg.jpg&img_nr=2'' > > i need & for multiple parameters...Are you saying that this doesn''t work for you? It is the correct thing to see even if most browsers relax the rules and let "parameters:id=''img_name=myimg.jpg&img_nr=2''" work the same way. That''s technically illegal since &img_nr... isn''t a valid character entity. -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Nov-23 14:55 UTC
Re: & in link_to_remote... :with => "A=1&B=2" becomes &
On 23 Nov 2007, at 14:49, Rob Biedenharn wrote:> > On Nov 22, 2007, at 5:40 PM, Zoran Kikic wrote: >> in >> <%= link_to_remote ... :with => >> %!id=''img_name=#{@images_to_dsp[i].to_s}&img_nr=2''!%> >> >> becomes >> >> parameters:id=''img_name=myimg.jpg&img_nr=2'' >> >> i need & for multiple parameters... > > Are you saying that this doesn''t work for you? It is the correct > thing to see even if most browsers relax the rules and let > "parameters:id=''img_name=myimg.jpg&img_nr=2''" work the same way. > That''s technically illegal since &img_nr... isn''t a valid character > entity.This being javascript and all, I believe what you actually need to produce in terms of js is parameters: {img_name: "myimg.jpg" img_nr: 2} There are to_json helpers available to help you on your way. 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 -~----------~----~----~----~------~----~------~--~---