has-many-polymorphs
HABTM Polymorphic Relationship
I\'m pretty new to Rails, and i\'m trying to do a polymorphic HABTM relationship. The problem is that I have three models that I want to relate.[详细]
2023-03-26 21:44 分类:问答Problem with Polymorphic has_many
I have the following table \"participations\": id: integer coupon_id: integer participant_type: string participant_id: integer[详细]
2023-03-15 05:41 分类:问答Rails 3, has_many :through and :polymorphic - Should I need to do this?
Ok so here goes. I don\'t know if I\'m over complicating things or if I\'m just still so new to Rails that I don\'t understand the basics. What I want in sudo code is this:[详细]
2023-03-14 04:50 分类:问答has_many through and polymorphic relationships
I don\'t know if this is possible, but here goes: FruitBasket has_many :apples has_many :bananas ######## What to put here to access Worm through its pest_holder relationship?[详细]
2023-03-11 18:47 分类:问答The has_many_polymorphs plugin is giving me this error
This is the error in my logs when I try to create a new model: /rubyprograms/dreamstill/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb:7: Configuration is not a class (Ty[详细]
2023-02-28 14:15 分类:问答rails3 model question
i moved from php to rails3, and i still think it was a good decision! Anyway I have some models: users[详细]
2023-02-21 07:00 分类:问答Rails self-referential has_many through
I\'m trying to make a self-referential user class with three basic user types- parent, student, and tutor.A student belongs to a parent and can also belong to a tutor.Of course, the way I have it writ[详细]
2023-02-14 03:06 分类:问答Rails: Trying to output the content of an object when you don't know what class the object belongs to
Preamble: Don\'t be scared off by the fact My Rails 3 app uses the has_many_polymorphs gem as I don\'t think you need to be familiar with the gem in order to help me here :)[详细]
2023-01-30 15:09 分类:问答Rails Has Many Through Polymorphic Checkboxes
This one\'s really getting me down! :( I\'m trying to make a nested model form for my User model with a checkbox list in it where multiple Stores can be checked or unchecked to administer the Stores[详细]
2023-01-25 05:22 分类:问答Ruby on Rails 3: Combine results from multiple has_many or has_many_through associations
I have the following models. Users have UserActions, and one possible UserAction can be a ContactAction (UserAction is a polymorphism). There are other actions like LoginAction etc. So[详细]
2023-01-23 01:34 分类:问答