Tuesday, August 2, 2011

[Rails] Re: Problems with fixtures and HABTM

The problem was that if you want to use the name convention for defining
relationships like in:

treatments: treatment4

The treatment fixture cannot have an id attribute. Ids should be managed
by Rails in this case.

--
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


Real Estate