Do you know any elegant way to achieve this in ruby plz ?
string = 'title,url'
#expected final variable => :title,:url or 'title','url'
I’ve looked in the API documentation (both ruby and rails) and didn’t find any simple method, before writing any loop I wanted to be sure I wasn’t missing something.
Thx !
Try this: