1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

27 commits

Author SHA1 Message Date
Oscar Del Ben
32df882f42 Update list of finder methods 2012-08-06 16:17:09 -07:00
Bogdan Gusiev
92641efeec AR::Relation#order: make new order prepend old one
User.order("name asc").order("created_at desc")
    # SELECT * FROM users ORDER BY created_at desc, name asc

This also affects order defined in `default_scope` or any kind of associations.
2012-07-31 10:24:18 +03:00
Jon Leighton
3205c768b7 Changelog and doc updates for the previous changes. 2012-07-27 18:08:18 +01:00
Chun-wei Kuo
94527eaafb Fix typo 2012-07-11 11:42:03 +08:00
Oscar Del Ben
aa43fa9a03 Update list of AR Relation methods 2012-07-05 18:28:44 -07:00
Oscar Del Ben
9a62551d43 Bump query guide to latest version 2012-07-05 18:21:09 -07:00
Carlos Antonio da Silva
e5cd300bec Add changelog entry and guide updates for pluck with multiple columns 2012-06-22 09:32:41 -03:00
Vijay Dev
9ed62ade5f cut down spaces [ci skip] 2012-05-30 23:11:09 +05:30
Vijay Dev
3b6d66a0c8 Revert "Revert "[AR querying guide] Add examples for take(limit), first(limit) and last(limit)""
This reverts commit 5559a2ae98.

Reason: These are for selecting multiple objects and there isn't a need
to club them with the selecting single objects section, as discussed
with the author.
2012-05-30 23:08:35 +05:30
Vijay Dev
98bfccbdb5 document the AR::Base#ids method introduced in 9307616 [ci skip] 2012-05-17 01:34:00 +05:30
Vijay Dev
a9668680fd some corrections in the AR query guide [ci skip] 2012-05-05 23:54:16 +05:30
Marcelo Silveira
9d906d04ef Update first, last and take in guides 2012-05-05 13:15:09 -03:00
Vijay Dev
42ff22f33a Merge branch 'master' of github.com:lifo/docrails 2012-05-01 19:06:03 +05:30
Vijay Dev
6bea191a75 Removed unclear doc in AR querying guide [ci skip]
The range example used in array conditions is unclear and talks about
the old 'conditions' option. Closes #4943.
2012-04-29 15:53:16 +05:30
Matthias Schmidt
0297e8e4dd Correct small consistency issue in AR querying guide 2012-04-28 11:29:11 +02:00
Vijay Dev
8189536aeb copy edits [ci skip] 2012-04-25 18:30:21 +05:30
Dmytrii Nagirniak
50f79daf59 Fix markdown in textile. 2012-04-23 13:45:22 +10:00
Dmytrii Nagirniak
50c5005baf Make it explicit that Symbol-s are not officially supported.
This will remove a lot of controversy.
As an example, see https://github.com/ernie/squeel/issues/67#issuecomment-5270896
2012-04-23 13:14:52 +10:00
Don Petersen
256e317c39 Fix typo where a table name in a join was singular. 2012-04-16 16:22:40 -07:00
Bertrand Chardon
418fb91269 SQL query formatting
Reformatted two SQL queries in Section 6) and 7) to avoid horizontal
scrolling where possible.
2012-04-13 12:08:03 -07:00
Ryan Bigg
ef493c9259 Don't use arel_table in published_and_commented example in querying guide 2012-04-07 11:29:18 -05:00
Martin Eisenhardt
1f4f4d4ccb Optimistic locking: lock_version needed type information. 2012-04-05 11:13:09 +03:00
Jon Leighton
b69298e01d fix typo. thanks @nertzy 2012-03-30 13:58:51 +01:00
Jon Leighton
84338aab90 Update guides to reflect 0a12a5f816 2012-03-30 13:15:47 +01:00
Jon Leighton
96b819210e remove irrelevant references to ARel 2012-03-30 13:07:00 +01:00
Jon Leighton
13b3c77e39 Add Relation#find_by and Relation#find_by! 2012-03-30 12:52:29 +01:00
Xavier Noria
6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00
Renamed from railties/guides/source/active_record_querying.textile (Browse further)