mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removes unrealistic example (authentication plus gender?), that it is not needed anyway
This commit is contained in:
parent
ad3e4e3af6
commit
2acb5e348d
1 changed files with 1 additions and 4 deletions
|
@ -180,10 +180,7 @@ module ActiveRecord #:nodoc:
|
||||||
# It's also possible to use multiple attributes in the same find by separating them with "_and_".
|
# It's also possible to use multiple attributes in the same find by separating them with "_and_".
|
||||||
#
|
#
|
||||||
# Person.where(:user_name => user_name, :password => password).first
|
# Person.where(:user_name => user_name, :password => password).first
|
||||||
# Person.find_by_user_name_and_password #with dynamic finder
|
# Person.find_by_user_name_and_password(user_name, password) # with dynamic finder
|
||||||
#
|
|
||||||
# Person.where(:user_name => user_name, :password => password, :gender => 'male').first
|
|
||||||
# Payment.find_by_user_name_and_password_and_gender(user_name, password, 'male')
|
|
||||||
#
|
#
|
||||||
# It's even possible to call these dynamic finder methods on relations and named scopes.
|
# It's even possible to call these dynamic finder methods on relations and named scopes.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue