As the title says i need to make a db field into an array the db field is of the type text and could for an example look like this: Blues, Elektronisk, Jazz, Klassisk, Metal, Rock and i can get it by typing @spec.music_style i need to use it in a for each loop, and tried to do this <% [@spec.music_style].each do |music_style| %> but it doesn''t seem to work Regards Benjamin -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---