is there a method similar to php’s expload function in ruby. i have a
database field that contains an array of items, when i output this field
i notice the items are seperated by ‘-’ e.g item1-item2-item3.
how would i go about putting them back into an array in ruby. for
example in PHP i would just do this:
$field; // = item1-item2-item3
$field_as_array = explode(’-’,$field);