mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
s/an/a/
This commit is contained in:
parent
529d2deb5e
commit
6014e1d325
3 changed files with 3 additions and 3 deletions
|
@ -929,7 +929,7 @@ Creates a scope around a specific model object like form_for, but doesn‘t crea
|
|||
|
||||
h5. file_field
|
||||
|
||||
Returns an file upload input tag tailored for accessing a specified attribute.
|
||||
Returns a file upload input tag tailored for accessing a specified attribute.
|
||||
|
||||
<ruby>
|
||||
file_field(:user, :avatar)
|
||||
|
|
|
@ -429,7 +429,7 @@ end
|
|||
|
||||
The +validates_with+ helper takes a class, or a list of classes to use for validation. There is no default error message for +validates_with+. You must manually add errors to the record's errors collection in the validator class.
|
||||
|
||||
To implement the validate method, you must have an +record+ parameter defined, which is the record to be validated.
|
||||
To implement the validate method, you must have a +record+ parameter defined, which is the record to be validated.
|
||||
|
||||
Like all other validations, +validates_with+ takes the +:if+, +:unless+ and +:on+ options. If you pass any other options, it will send those options to the validator class as +options+:
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ This command will install all dependencies except the MySQL and PostgreSQL Ruby
|
|||
$ rake test
|
||||
</shell>
|
||||
|
||||
You can also run tests for an specific framework, like Action Pack, by going into its directory and executing the same command:
|
||||
You can also run tests for a specific framework, like Action Pack, by going into its directory and executing the same command:
|
||||
|
||||
<shell>
|
||||
$ cd actionpack
|
||||
|
|
Loading…
Reference in a new issue