[Rails] Re: form_for checkbox with array
I've read what you posted and I'm still not sure what you are trying to
do here. Start out by providing the following and use
(http://gist.github.com) for posting the code for readability.
Model Files: post your user.rb and profile.rb
Schema: post your schema for user and profile
Controller Files: post your profiles_controller.rb
Then, answer what you are trying to do with the checkbox. And, while
you are at it, review this here so you can understand how to properly
write a form_for - http://guides.rubyonrails.org/form_helpers.html
You'll find form_for in section 2.2.
After you post that, just provide a short summary of how you feel the
logic should work with these controllers.
Example:
When going to the profiles index I expect to see the following:
.. field_one : string containing x..
.. field_two : integer containing y..
etc..
Given this, anyone should be able to answer your question.
Thanks mate.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home