Top "Dynamic-finders" questions

find vs find_by vs where

I am new to rails. What I see that there are a lot of ways to find a record: find_…

ruby-on-rails rails-activerecord dynamic-finders
find_or_create_by in Rails 3 and updating for creating records

I'm not sure if I should be updating records this way or if I'm missing something. I have a table …

ruby-on-rails ruby-on-rails-3 activerecord dynamic-finders
Rails "find_all_by" vs ".where"

I have the following code: def maturities InfoItem.find_all_by_work_order(self.work_order).map(&:maturity) end …

ruby-on-rails where dynamic-finders
Rails find_or_create_by where block runs in the find case?

The ActiveRecord find_or_create_by dynamic finder method allows me to specify a block. The documentation isn't clear on …

ruby-on-rails activerecord dynamic-finders