I have a user. A user can have many tables. Actual, only 5. In my table model I have validate :max_tables
I think this this is a开发者_Python百科 pretty stupid question but I just confused myself I have several has_many defined. I can reference them in an instance method by saying self.------- If I try t
since I am only going to be showing that one item, do I just have (example) /the_thing/23 or do I still go with the /the_group/1/the_thing/23
I have a User model that can acquir开发者_JAVA百科e gift certificates from a CardSignup model they create.
This is a little bit hard to explain, so I\'ll try to be as clear as possible. In my CakePHP project, suppose I have a model called Country, and Country has a hasMany association to Region. Now, the
I have models User and Message. Every user can send messages to other users. In User there are no fields related to the Message. In Message there are the following: from_id, to_id, content.
I\'m building a project management application in Ruby on Rails (3.0). I am trying to figure out how to update all the tasks of a project on update of a project column. Here is the situation.
I need some help to store some data efficiently. I have a large list of objects (about 100.000) and want to store associations between this items with a coefficient. Not all items are associated, in f
I hav开发者_Go百科e a GroupCoach model, Group Coaches has_many :groups.On my new Group form I want to pass a group_coach_id to the Group object in a hidden field so that a group gets associated with a
I need a little help to understand this association types. I have 2 models (item_type and item) item_type it\'s just acting like a category and have only one field (title)