diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2008-11-12 21:45:42 +1030 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2008-11-12 21:45:42 +1030 |
commit | 7f023b5e3bd62c1f91ee341c1af155c0953e693a (patch) | |
tree | 9a50f7b7f7c634ce9dc25d934ee009e5aa18fef1 | |
parent | 3b2b77baaef3c8b9a8794f4c37916adf27a4d63e (diff) | |
download | rails-7f023b5e3bd62c1f91ee341c1af155c0953e693a.tar.gz rails-7f023b5e3bd62c1f91ee341c1af155c0953e693a.tar.bz2 rails-7f023b5e3bd62c1f91ee341c1af155c0953e693a.zip |
Updated finders guide
-rw-r--r-- | railties/doc/guides/source/finders.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/finders.txt b/railties/doc/guides/source/finders.txt index 2e6b368e3f..d26711fce2 100644 --- a/railties/doc/guides/source/finders.txt +++ b/railties/doc/guides/source/finders.txt @@ -120,7 +120,7 @@ To find all the clients you would simply type +Client.all+ and that would find a created_at: "2008-09-28 15:38:50", updated_at: "2008-09-28 15:38:50">, #<Client id: 2, name: => "Michael", locked: false, orders_count: 3, created_at: "2008-09-28 13:12:40", updated_at: "2008-09-28 13:12:40">] -------------------------------------------------------- +------------------------------------------------------- As alternatives to calling +Client.first+, +Client.last+, and +Client.all+, you can use the class methods +Client.first+, +Client.last+, and +Client.all+ instead. +Client.first+, +Client.last+ and +Client.all+ just call their longer counterparts: +Client.find(:first)+, +Client.find(:last)+ and +Client.find(:all)+ respectively. |