Hello I''m working on a game, and I need to do a item store and items so
what I did was table: store_items and table: items in table items you
have: id user_id store_item_id and in store_items is where all of the
stats are. So I did has_one :store_item in the item model, but them SQL
looks for store_items.item_id = 1 is there a way to by pass this or what
should I do?
Thanks in advance,
Mohammad
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---