Hello.
I have a model Profile with an attribute named 'descriptions_of_like'.
'desctiptions_of_like' - is a string, which I convert into an array for
working with them and before saving in table convert into a string.
(It's a not a best way, i think, but the first thing that comes to
mind).
How can i manage this lisk of descriptions with form_for?
I write this:


<div id = 'descriptions'>
  <% form_for @user do |f| %>
    <% @list_of_descriptions.each do |i|  %>
      <% f.check_box :i %>
    <% end %>
  <% end %>
</div>
where      @list_of_descriptions =
@user.descriptions_of_like.split(%r{,\s*})

and get error
"undefined method `i'"

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to