Converting string to an array in Ruby on Rails
How would I convert the following string:
["drinks", 500], ["food", 500], ["sports", 1000]
To an array that looks exactly the same? I tried using some of the other
samples on stackoverflow but didn't have much luck...
No comments:
Post a Comment