has_many indicates a master-detail relationship.
In my User model I could have: has_many :tasks and in my Task model: belongs_to :user Then, supposing …
ruby-on-rails has-manyLet's say I have the following classes class SolarSystem < ActiveRecord::Base has_many :planets end class Planet < ActiveRecord::…
ruby-on-rails-3 activerecord has-manyThis seems fairly simple but I can't get it to turn up on Google. If I have: class City < …
sql ruby-on-rails activerecord has-many1) I know that it will save associations when autosave: true as per http://railsapi.com/doc/rails-v2.3.8/classes/ActiveRecord/AutosaveAssociation.…
ruby-on-rails activerecord associations has-manyNew to both Ruby and Rails but I'm book educated by now (which apparently means nothing, haha). I've got two …
ruby-on-rails ruby has-many has-many-throughUsers can add tags to a snippet: class Snippet < ActiveRecord::Base # Relationships has_many :taggings has_many :tags, :through =&…
ruby-on-rails validation tagging has-manyI'm new to testing and rails but i'm trying to get my TDD process down properly. I was wondering if …
ruby-on-rails ruby rspec has-many has-many-throughI try to create a polymorphic association, what is common in Rails but unfortunately not in Yii2. As part of …
yii2 has-many polymorphic-associations relationRelatively new to rails and trying to model a very simple family "tree" with a single Person model that has …
ruby-on-rails ruby model has-manyI'm trying to customise a ActiveAdmin form for a Recipe model that has a has_many relationship with Step. class …
ruby-on-rails admin has-many formtastic activeadmin