Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [ci skip] Uniquiness with scope can have one or more arguments | Angelo Capilleri | 2015-05-03 | 1 | -1/+1 |
| | |||||
* | [ci skip] Active Record Validations guide fixes | Jon Atack | 2015-03-25 | 1 | -3/+5 |
| | | | | | | | | | | | | | | - Remove deprecated `[]=` - Fix duplicate `errors#add` example. The second code example was originally `[]=`, replace it with `[] <<`. - Improve explanations for `errors#add` and `errors#full_messages` Follow-up to PR #19457 (closed after borking my git history). Apologies for the duplicate PR. cc @kaspth | ||||
* | [ci-skip] correct doc about custom validators | Aditya Kapoor | 2015-02-27 | 1 | -2/+2 |
| | |||||
* | Oops :bomb: | Rafael Mendonça França | 2015-02-20 | 1 | -1/+1 |
| | |||||
* | Change the deprecation messages to show the preferred way to work with | Rafael Mendonça França | 2015-02-20 | 1 | -1/+1 |
| | | | | ActiveModel::Errors | ||||
* | use `messages` instead of deprecated `ActiveModel::Errors#[]=` method [ci skip] | yuuji.yaginuma | 2015-02-20 | 1 | -1/+1 |
| | |||||
* | Merge pull request #18815 from tmingos/patch-1 | Zachary Scott | 2015-02-16 | 1 | -3/+2 |
|\ | | | | | Correct pluralization error | ||||
| * | Edit text on optional db constraints for uniqueness validations [ci skip] | Taylor Mingos | 2015-02-04 | 1 | -3/+2 |
| | | |||||
* | | Tiny documentation edits [ci skip] | Robin Dupret | 2015-02-15 | 1 | -23/+24 |
|/ | |||||
* | fix regexp for validate an integer in guides [ci skip] | yuuji.yaginuma | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | Add ActiveModel::Errors#details | Wojciech Wnętrzak | 2015-01-20 | 1 | -2/+56 |
| | | | | | | | | | | | | | | | | To be able to return type of validator, one can now call `details` on Errors instance: ```ruby class User < ActiveRecord::Base validates :name, presence: true end ``` ```ruby user = User.new; user.valid?; user.errors.details => {name: [{error: :blank}]} ``` | ||||
* | - Changed `IN` to `ON` in markdown renderer condition | Vipul A M | 2015-01-14 | 1 | -1/+1 |
| | | | | - Changed `IN` to `ON` in all note sentences in guides. | ||||
* | warn about reading guides in GitHub | Xavier Noria | 2014-12-23 | 1 | -0/+2 |
| | | | | References #18148. | ||||
* | Adding information about 'allow_nil' option for 'numericality' [ci skip] | Andrey Nering | 2014-12-09 | 1 | -0/+2 |
| | |||||
* | Merge branch 'master' of github.com:rails/rails | Vijay Dev | 2014-11-04 | 1 | -1/+1 |
|\ | |||||
| * | better example for tokenizer lambda [ci skip] | Robin Tweedie | 2014-10-29 | 1 | -1/+1 |
| | | | | | | | | | | Splitting on whitespace makes more sense in the context of counting words in an essay. | ||||
* | | [ci skip] Add missing blank line to AR validation. | Juanito Fatas | 2014-10-25 | 1 | -0/+1 |
|/ | |||||
* | fix wrong #17318 [ci skip] | Igor Kapkov | 2014-10-19 | 1 | -1/+1 |
| | |||||
* | make guides example more friendly to nonlatin langs | Igor Kapkov | 2014-10-19 | 1 | -1/+1 |
| | |||||
* | mention the :without option [ci skip] | Rob | 2014-10-16 | 1 | -0/+2 |
| | | | As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation. | ||||
* | Clarify possible validations you can use to avoid a NULL boolean value | Zachary Scott | 2014-10-03 | 1 | -2/+8 |
| | | | | in the database. Closes #16304 [ci skip] | ||||
* | [Guides] Sentence break for clarity [ci-skip] | Max Goldstein | 2014-07-11 | 1 | -2/+2 |
| | |||||
* | Fix guide. sample code syntax error.[ci skip] | tbpgr | 2014-07-04 | 1 | -1/+1 |
| | |||||
* | Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] | John Kelly Ferguson | 2014-05-21 | 1 | -5/+5 |
| | |||||
* | Use generated binstubs in guides examples. | Josef Šimánek | 2014-05-20 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2014-02-09 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | Conflicts: guides/source/active_record_validations.md guides/source/api_documentation_guidelines.md guides/source/configuring.md | ||||
| * | Use full-length version of multiple from c7abc51 | Zachary Scott | 2014-02-09 | 1 | -1/+1 |
| | | |||||
| * | docs, link MySQL manual for multi column indexes. [ci ckip]. | Yves Senn | 2014-02-09 | 1 | -1/+3 |
| | | | | | | | | Closes #9131. | ||||
* | | docs, link MySQL manual for multi column indexes. [ci ckip]. | Yves Senn | 2014-02-04 | 1 | -1/+3 |
| | | | | | | | | Closes #9131. | ||||
* | | Reordered classes in AR Validation #validates_with example [ci skip] | John Olmsted & Strand McCutchen | 2014-01-24 | 1 | -8/+8 |
|/ | | | | | Person called GoodnessValidator before it was defined. This change will compile the example correctly. | ||||
* | Removed redundant field name in the guide | Paul Nikitochkin | 2013-12-01 | 1 | -1/+1 |
| | | | | Fixes: #13108 [ci skip] | ||||
* | [ci skip] Replace #=> with # => | Alex Johnson | 2013-11-12 | 1 | -9/+9 |
| | |||||
* | Remove size alias for length validation | Sıtkı Bağdat | 2013-10-14 | 1 | -2/+0 |
| | | | | | | | | | | Removed ```The `size` helper is an alias for `length`.``` line. If you use this "nonexist" helper, you will get an error message like this: ``` ArgumentError: Unknown validator: 'SizeValidator' ... ``` Maybe wanted to mean ```validates_size_of``` helper as an alias for ```validates_length_of``` helper. | ||||
* | Fix a writing mistake | Sıtkı Bağdat | 2013-10-12 | 1 | -1/+1 |
| | | | A small mistake found in the line of ```The default error is "can't be empty"``` for ```:presence``` helper. ```empty``` word changed to ```blank```. | ||||
* | [Validations Guide] Add full stop to the end of sentence [ci skip] | Francis Go | 2013-10-10 | 1 | -1/+1 |
| | |||||
* | cleans the guides sources from fancy non-ASCII stuff | Xavier Noria | 2013-08-23 | 1 | -1/+1 |
| | |||||
* | Fix active_record_validations.md document, `:save` for `on:` validation ↵ | Takehiro Adachi | 2013-08-04 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | helper was never available According to the guide, ":save" value for the "on:" validation helper was available like below validates :name, presence: true, on: :save but this was never available according to the implementation of the valid? method, which is below # Runs all the validations within the specified context. Returns +true+ if # no errors are found, +false+ otherwise. # # If the argument is +false+ (default is +nil+), the context is set to <tt>:create</tt> if # <tt>new_record?</tt> is +true+, and to <tt>:update</tt> if it is not. # # Validations with no <tt>:on</tt> option will run no matter the context. Validations with # some <tt>:on</tt> option will only run in the specified context. def valid?(context = nil) context ||= (new_record? ? :create : :update) output = super(context) errors.empty? && output end So the documentation was always wrong since the PR proposed by @neerajdotname ( #10287 ) was rejected. | ||||
* | fix typo in Active Record Validations guide. [ci skip]. | Yves Senn | 2013-07-19 | 1 | -1/+1 |
| | | | | Closes #11498. | ||||
* | [doc] Update return false if record is invalid | Rashmi Yadav | 2013-06-19 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-06-14 | 1 | -5/+5 |
|\ | | | | | | | | | Conflicts: guides/source/upgrading_ruby_on_rails.md | ||||
| * | Using 1.9 syntax for edge guides | Rashmi Yadav | 2013-06-12 | 1 | -2/+2 |
| | | |||||
| * | Remove double spaces in guides | Sunny Ripert | 2013-05-28 | 1 | -1/+1 |
| | | |||||
| * | End-of-line whitespace hunt | Sunny Ripert | 2013-05-28 | 1 | -2/+2 |
| | | |||||
* | | change format example to read better when rendered with full_messages | barelyknown | 2013-06-08 | 1 | -1/+1 |
|/ | | | The capital O was awkward and the validation wouldn't read "right" to the user. | ||||
* | Corrected documentation regarding validation errors | Radu Busuioc | 2013-05-16 | 1 | -7/+7 |
| | |||||
* | Added instructions of latest bundler install + modified the on: :save option ↵ | aditya-kapoor | 2013-04-22 | 1 | -2/+1 |
| | | | | description in validations | ||||
* | corrected a typo related to on: :save option in validations | aditya-kapoor | 2013-04-22 | 1 | -1/+1 |
| | |||||
* | corrected a line related to on: :save option in validations | aditya-kapoor | 2013-04-22 | 1 | -0/+2 |
| | |||||
* | Change 'validates_presence_of' to 'presence: true' | Zoltan Debre | 2013-04-16 | 1 | -1/+1 |
| | | | Of course validates_presence_of is still working but it is not explained in the guide, I think consequently should use 'presence: true' in this documentation. | ||||
* | fix absence validator doc for boolean field | Angelo capilleri | 2013-03-13 | 1 | -2/+2 |
| |