I have a string of state codes (ie 'MD,PA,VA,WV') i'm passing from a select list (:allow_multiple => true), in which I'm trying to replace the commas with "','". I have the following gsub, which works fine in irb, however in Rails it's returning "'',''" (double single-quotes).
states = params[:states].gsub(/,/, "','") Any suggestions? -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

