Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Corrected a typo. | Michael Hutchinson | 2011-09-27 | 1 | -1/+1 |
| | |||||
* | No more changelogs inside guides | Vijay Dev | 2011-09-15 | 1 | -9/+0 |
| | |||||
* | change first_or_new to first_or_initialize as per 11870117, and some edits | Vijay Dev | 2011-09-14 | 1 | -10/+12 |
| | |||||
* | Merge pull request #2757 from andmej/first_or_create_pull_request | Jon Leighton | 2011-09-08 | 1 | -7/+68 |
|\ | | | | | Add first_or_create family of methods to Active Record | ||||
| * | Adding `first_or_new` documentation to the AR Querying guide. | Nicolas Hock Isaza | 2011-08-30 | 1 | -1/+1 |
| | | |||||
| * | Adding first_or_create, first_or_create!, first_or_new and first_or_build to ↵ | Andrés Mejía | 2011-08-30 | 1 | -7/+68 |
| | | | | | | | | | | | | | | | | | | | | Active Record. This let's you write things like: User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson", :hot => true) Related to #2420. | ||||
* | | some of the changes for validation earlier reverted from d20281a | Vijay Dev | 2011-09-03 | 1 | -2/+2 |
|/ | |||||
* | fixes generation of the AR querying guide | Xavier Noria | 2011-08-17 | 1 | -2/+2 |
| | |||||
* | document the change in edge rails which makes a more strict check on the ↵ | Vijay Dev | 2011-07-23 | 1 | -0/+1 |
| | | | | arity of the dynamic finders | ||||
* | Updated active_record_querying.textile: intro paragraph of 'Conditions' to ↵ | Christopher Scott Hernandez | 2011-07-08 | 1 | -1/+1 |
| | | | | change 'find method' to 'where method' | ||||
* | correct invalid HAVING query | Akira Matsuda | 2011-06-29 | 1 | -3/+3 |
| | | | | | * GROUP BY value must appear in SELECT clause * ("created_at < ?", 1.month.ago) wasn't a very good example for HAVING. you'd better use WHERE for such a simple condition | ||||
* | correct invalid GROUP BY query | Akira Matsuda | 2011-06-29 | 1 | -2/+2 |
| | | | | GROUP BY value must appear in SELECT clause | ||||
* | minor indentation fixes on a6293ff | Vijay Dev | 2011-06-26 | 1 | -10/+10 |
| | |||||
* | Update changelog for querying guide | Ryan Bigg | 2011-06-26 | 1 | -1/+2 |
| | |||||
* | Querying guide: add mention of scoped, unscoped and default_scope to ↵ | Ryan Bigg | 2011-06-26 | 1 | -0/+41 |
| | | | | querying guide | ||||
* | document Active Record's reverse_order method | Vijay Dev | 2011-06-20 | 1 | -0/+27 |
| | |||||
* | Fix incorrect description of the returned results. | Ben Orenstein | 2011-05-27 | 1 | -2/+2 |
| | |||||
* | Copy edits 64148ab96b47a9904fdd839bc69971b4e156bb04 (previous commit). ↵ | Ben Orenstein | 2011-05-26 | 1 | -1/+1 |
| | | | | Please squash at will. | ||||
* | Improve 'Joining Tables' section with additional examples and explanation. | Ben Orenstein | 2011-05-26 | 1 | -1/+29 |
| | |||||
* | Don't you lie to me! | Ben Orenstein | 2011-05-26 | 1 | -2/+2 |
| | |||||
* | document the reorder method(fb215110401c70cfc7013c6e2ad5753fa4e374e9) | Vijay Dev | 2011-04-28 | 1 | -4/+31 |
| | |||||
* | Exception got moved to ActiveModel with Rails 3 | Eric Anderson | 2011-04-20 | 1 | -1/+1 |
| | |||||
* | Remove extra whitespaces from guides | Sebastian Martinez | 2011-04-14 | 1 | -2/+2 |
| | |||||
* | Making colon usage consistent | Matt Duncan | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | fix example query | Vijay Dev | 2011-04-06 | 1 | -1/+1 |
| | |||||
* | Delegate first!, last!, any? and many? to scoped | Andrew White | 2011-03-29 | 1 | -0/+20 |
| | |||||
* | impact recent updates to #first! and #last! methods | Sebastian Martinez | 2011-03-25 | 1 | -3/+3 |
| | |||||
* | Update AR querying guide with #first! and #last! new methods | Sebastian Martinez | 2011-03-25 | 1 | -0/+34 |
| | |||||
* | Querying guide: mention that performing a where on an relation that contains ↵ | Ryan Bigg | 2011-03-22 | 1 | -1/+3 |
| | | | | an includes statement will generate a LEFT OUTER JOIN rather than an INNER JOIN or another query | ||||
* | Querying guide: mention that performing a where on an relation that contains ↵ | Ryan Bigg | 2011-03-22 | 1 | -0/+14 |
| | | | | an includes statement will generate a LEFT OUTER JOIN rather than an INNER JOIN or another query | ||||
* | wrong SQL statement | Akira Matsuda | 2011-03-06 | 1 | -1/+1 |
| | |||||
* | Documented the except and only conditions in the guides. Took the cue from ↵ | Vijay Dev | 2011-01-15 | 1 | -2/+30 |
| | | | | Jordi Ramero's commit (b31ef7ee83f3fe808f7534172ce2bf22ef6c7cc0) | ||||
* | fixed query output | Vijay Dev | 2011-01-09 | 1 | -2/+2 |
| | |||||
* | highlighted find(array of keys) behaviour when one or more record is not found | Vijay Dev | 2010-12-25 | 1 | -4/+2 |
| | |||||
* | Revert "Query guide: arel_table, eq and eq_any" along with other commits ↵ | Ryan Bigg | 2010-12-24 | 1 | -131/+0 |
| | | | | | | | | | | that added documentation involving the arel_table method This reverts commit 578f9711fdb42ca9fc4b8248c494afe755cd1c17. Conflicts: railties/guides/source/active_record_querying.textile | ||||
* | Query guide: visists => visits | Ryan Bigg | 2010-12-24 | 1 | -1/+1 |
| | |||||
* | Query guide: add or conditions | Ryan Bigg | 2010-12-23 | 1 | -0/+11 |
| | |||||
* | Query guide: cover further ARel methods | Ryan Bigg | 2010-12-23 | 1 | -7/+76 |
| | |||||
* | Query guide: Document "in" methods | Ryan Bigg | 2010-12-23 | 1 | -0/+25 |
| | |||||
* | Query guide: arel_table, eq and eq_any | Ryan Bigg | 2010-12-23 | 1 | -0/+26 |
| | |||||
* | Query guide: specify what type of objects scopes return | Ryan Bigg | 2010-12-23 | 1 | -1/+1 |
| | |||||
* | Query guide: Ordering, selecting and so on shouldn't be nested in conditions ↵ | Ryan Bigg | 2010-12-23 | 1 | -9/+9 |
| | | | | as they are modifiers, not conditions in the prime sense of the word. | ||||
* | Query Guide: update Changelog | Ryan Bigg | 2010-12-23 | 1 | -0/+1 |
| | |||||
* | Query guide: class methods are still available on associations | Ryan Bigg | 2010-12-23 | 1 | -1/+5 |
| | |||||
* | Query guide: scopes with arguments should be instead defined as class methods. | Ryan Bigg | 2010-12-23 | 1 | -3/+31 |
| | |||||
* | Query guide: fix indentation | Ryan Bigg | 2010-12-23 | 1 | -13/+13 |
| | |||||
* | Remove comma [samuelkadoph] | Ryan Bigg | 2010-12-23 | 1 | -1/+1 |
| | |||||
* | Query guide: lambdas must be used when working with scopes | Ryan Bigg | 2010-12-23 | 1 | -0/+12 |
| | |||||
* | Querying guide: Add mention of the scope method | Ryan Bigg | 2010-12-23 | 1 | -0/+42 |
| | |||||
* | typo | Samus_ | 2010-12-03 | 1 | -1/+1 |
| |