Web Development  >>  Ruby On Rails

Find Through Association

Language : English Quality : High Has Audio : true Source : Other Media : QuickTime
No need to pass foreign keys in find conditions, just do the find through a has_many association.

Tags: Ruby On Rails, Ruby, Web Development,     [SUGGEST  A  TAG]

Resources referenced in this screencast
  • Ruby on Rails

  • Created : 2007-09-03   Duration : 02:17

    Articles Realted to this Topic

    Basic Rails association cardinality
    ActiveRecord associations can be used to describe relations with one-to-one, one-to-many and many-to-many cardinality. Each model uses an association to describe its role in the relation. In each case, the belongs_to association is used in the model that has the foreign key
    Top 10 Ruby on Rails performance tips
    The performance of Ruby on Rails is influenced by many factors, particularly the configuration of your deployment server(s). However the application code can make a big difference and determine whether your site is slow or highly responsive. This short article is about some of the tips and best coding practices to improve performances in Rails only, and won’t attempt to cover the server configuration improvements for the various deployments options