Rails array in database

i am passing an array of items to the rails create scaffold from a form
(checkboxes) e.g

this works, and when i check my database table the field contains the

  • 1st value
  • 2nd value
  • 3rd value

so when i come to use these values i get the first value which is ‘—’
the second value as ‘- 1st value’ etc… obviously i want the first value
to be ‘1st value’, second value ‘2nd value’ etc.

any body else experienced this, and have a solution??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs