Top "Associations" questions

Associations typically refer to relationships between models in ORMs such as ActiveRecord.

Could not find the source association(s) :followed_id in model relationship in Rails 3.2

I get the following error message when requesting the home page of my sample app (following Michael Hartl's Tutorial chapter 11): "…

ruby-on-rails associations relationship railstutorial.org
Rails 4 many to many association not working

Ruby on rails newbie here. Trying to create a starter blog app and having trouble with many to many association …

ruby-on-rails ruby associations ruby-on-rails-4 has-and-belongs-to-many
How can I create new records with has_many :through and honor :conditions?

Let's say I have a Course in which Students can enroll via a Membership (e.g. a has_and_belongs_…

ruby-on-rails activerecord associations has-many-through
rails scope through has_many association

I have two models for Show and Performance (show as in a play or comedy show). They are associated like …

ruby-on-rails-4 scope associations has-many
Rails: has_one and belongs_to with presence validation on both foreign keys

I have an application with a users table and a user_profiles table. A user has_one user profile and …

ruby-on-rails associations belongs-to has-one
Validate presence of polymorphic parent

I am developing a Rails 3.2 application with the following models: class User < ActiveRecord::Base # Associations belongs_to :authenticatable, polymorphic: …

ruby-on-rails polymorphism associations
ActiveRecord::HasManyThroughAssociationNotFoundError in UserController#welcome

I have a many to many relationship in rails. All database tables are named accordingly and appropriately. All model files …

ruby-on-rails activerecord many-to-many associations has-many-through
has_one/has_many with dependent destroy but using a different name for the key

So I'm looking at someone's code which has the following (paraphrased): class user has_one :connection, :dependent => :destroy has_…

ruby-on-rails model associations polymorphic-associations dependent-destroy
How can I get the frequencies of common itemsets from the apriori call in R?

Problem: The apriori function of the arules package infers association rules from the input transactions and reports the support, confidence, …

r associations apriori
ExtJS 4.1 - Returning Associated Data in Model.Save() Response

I am curious as to why the record contained in the result set of a Model.save() response does not …

extjs nested associations extjs4.1