It seems impossible to make a simple task, find given method for given class in Ruby on Rails 3.1.3 docs.
For example, I need to find ActiveRecord#where.
Using link "Methods" in http://rubydoc.info/gems/activerecord/frames
gives the source code, but no description:
def where(opts, *rest)
return self if opts.blank?
relation = clone
relation.where_values += build_where(opts, rest)
Apparently, the principal site: http://api.rubyonrails.org/
has no link to "Methods" or to index at all.
Can you help please?
I just would like to know, can be this call signature used:
User.where activated: true
User.where :activated => true
instead of longly:
User.where("activated == TRUE")
"activated" is a field in table "users".