Ruby on Rails
Sunday, July 1, 2012
S,
You should not have to do any manual association. If you have params[:dog][:leg_ids] = [...], it should work; you may need to set attr_accessible :leg_ids in your Dog model. Show your solution, and maybe we can refactor it to use less code.
--
Andrew Ferk
On Sunday, July 1, 2012 10:39:14 AM UTC-5, sheamus wrote:
Thank. Yeah, I basically ended up doing something similar. I use 'leg[]' in my select tag, and then manually hooked things up in the back end.... I wonder if in your solution if things would have been connected for me? Never mind just tried it, I still have to hook things up manually in the backend.Thanks for the help, good to know that I am not crazy.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ivYnm3vaIHcJ.
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-US.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment