Mitchell Gould
2010-Aug-25 05:06 UTC
how to disable character escaping in collection_select
I have a drop down using collection_select <%= form.collection_select(:country,@countries, :name, :name,options ={:prompt => t(''services.req_form.country_prompt'')}, :escape => false ) %> I read somewhere that putting :escape => false in the options would disable character escaping. This does not seem to work. I am using the unicode values for french accents and need to display the accent. However Rails helper escapes the ampersand so I get the wrong code "&" instead of "&". How can I stop this from happening. Thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.