search for: xxx_id

Displaying 3 results from an estimated 3 matches for "xxx_id".

2008 Sep 18
1
"xxx_id may not be null" when saving many to many joined objects
...e Tune, Variation and Title are all new objects and perform the save of the Tune and Title, get their IDs to store in the Variation and lastly save the Variation. Any help or pointers for where to look are greatly appreciated. Thanks, Pat -- View this message in context: http://www.nabble.com/%22xxx_id-may-not-be-null%22-when-saving-many-to-many-joined-objects-tp19551721p19551721.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rai...
2006 Mar 31
3
ID fields not getting picked up
For example I have table Questions. With fields id, text, and test_id. test_id is not being displayed in my view. I am hoping this means Rails has picked up that it is an id for another model. If so, then how do I utilize that? If not, then do I need to avoid ''id'' in any field names other than the main id field? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Aug 16
1
Creating a comments system for multiple types of content
...statement. This would work, but every comment entry would belong only to one of the three models, so there were many NULL values that seem incorrect to me. And when another content type would be created (like party_report) I would have to update the comment model and it would get more and more xxx_id fields and NULL values. Do you see a better way for doing this? I''m still looking for a "clean" way, but I can''t really find one using the Rails stuff I know. My idea is something like having another attribute in the comment model that specifies the sort of content (...