- 21 2月, 2015 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
ActiveModel::Errors
-
- 20 2月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 16 2月, 2015 1 次提交
-
-
由 Robin Dupret 提交于
-
- 05 2月, 2015 1 次提交
-
-
由 Taylor Mingos 提交于
-
- 22 1月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 21 1月, 2015 1 次提交
-
-
由 Wojciech Wnętrzak 提交于
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}]} ```
-
- 14 1月, 2015 1 次提交
-
-
由 Vipul A M 提交于
- Changed `IN` to `ON` in all note sentences in guides.
-
- 24 12月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
References #18148.
-
- 10 12月, 2014 1 次提交
-
-
由 Andrey Nering 提交于
-
- 29 10月, 2014 1 次提交
-
-
由 Robin Tweedie 提交于
Splitting on whitespace makes more sense in the context of counting words in an essay.
-
- 25 10月, 2014 1 次提交
-
-
由 Juanito Fatas 提交于
-
- 19 10月, 2014 2 次提交
-
-
由 Igor Kapkov 提交于
-
由 Igor Kapkov 提交于
-
- 16 10月, 2014 1 次提交
-
-
由 Rob 提交于
As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation.
-
- 04 10月, 2014 1 次提交
-
-
由 Zachary Scott 提交于
in the database. Closes #16304 [ci skip]
-
- 11 7月, 2014 1 次提交
-
-
由 Max Goldstein 提交于
-
- 03 7月, 2014 1 次提交
-
-
由 tbpgr 提交于
-
- 22 5月, 2014 1 次提交
-
-
由 John Kelly Ferguson 提交于
-
- 20 5月, 2014 1 次提交
-
-
由 Josef Šimánek 提交于
[ci skip]
-
- 09 2月, 2014 2 次提交
-
-
由 Zachary Scott 提交于
-
由 Yves Senn 提交于
Closes #9131.
-
- 04 2月, 2014 1 次提交
-
-
由 Yves Senn 提交于
Closes #9131.
-
- 25 1月, 2014 1 次提交
-
-
Person called GoodnessValidator before it was defined. This change will compile the example correctly.
-
- 01 12月, 2013 1 次提交
-
-
由 Paul Nikitochkin 提交于
Fixes: #13108 [ci skip]
-
- 12 11月, 2013 1 次提交
-
-
由 Alex Johnson 提交于
-
- 15 10月, 2013 1 次提交
-
-
由 Sıtkı Bağdat 提交于
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.
-
- 12 10月, 2013 1 次提交
-
-
由 Sıtkı Bağdat 提交于
A small mistake found in the line of ```The default error is "can't be empty"``` for ```:presence``` helper. ```empty``` word changed to ```blank```.
-
- 09 10月, 2013 1 次提交
-
-
由 Francis Go 提交于
-
- 23 8月, 2013 1 次提交
-
-
由 Xavier Noria 提交于
-
- 04 8月, 2013 1 次提交
-
-
由 Takehiro Adachi 提交于
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.
-
- 19 7月, 2013 1 次提交
-
-
由 Yves Senn 提交于
Closes #11498.
-
- 20 6月, 2013 1 次提交
-
-
由 Rashmi Yadav 提交于
-
- 13 6月, 2013 1 次提交
-
-
由 Rashmi Yadav 提交于
-
- 09 6月, 2013 1 次提交
-
-
由 barelyknown 提交于
The capital O was awkward and the validation wouldn't read "right" to the user.
-
- 28 5月, 2013 2 次提交
-
-
由 Sunny Ripert 提交于
-
由 Sunny Ripert 提交于
-
- 17 5月, 2013 1 次提交
-
-
由 Radu Busuioc 提交于
-
- 22 4月, 2013 2 次提交
-
-
由 aditya-kapoor 提交于
Added instructions of latest bundler install + modified the on: :save option description in validations
-
由 aditya-kapoor 提交于
-