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

When referring to Rails, be consistent in usage of capitalized form, unless it is used in context of a command like bin/rails or the rails directory [ci skip]

This commit is contained in:
Vipul A M 2016-08-19 14:17:07 +05:30
parent 5b5437caeb
commit 18e599940a
No known key found for this signature in database
GPG key ID: 4C9362FE1F574587
3 changed files with 4 additions and 4 deletions

View file

@ -485,7 +485,7 @@ which contains these lines:
Rails creates both `app/assets/javascripts/application.js` and Rails creates both `app/assets/javascripts/application.js` and
`app/assets/stylesheets/application.css` regardless of whether the `app/assets/stylesheets/application.css` regardless of whether the
--skip-sprockets option is used when creating a new rails application. This is --skip-sprockets option is used when creating a new Rails application. This is
so you can easily add asset pipelining later if you like. so you can easily add asset pipelining later if you like.
The directives that work in JavaScript files also work in stylesheets The directives that work in JavaScript files also work in stylesheets
@ -1024,7 +1024,7 @@ to tell our CDN (and browser) that the asset is "public", that means any cache
can store the request. Also we commonly want to set `max-age` which is how long can store the request. Also we commonly want to set `max-age` which is how long
the cache will store the object before invalidating the cache. The `max-age` the cache will store the object before invalidating the cache. The `max-age`
value is set to seconds with a maximum possible value of `31536000` which is one value is set to seconds with a maximum possible value of `31536000` which is one
year. You can do this in your rails application by setting year. You can do this in your Rails application by setting
``` ```
config.public_file_server.headers = { config.public_file_server.headers = {

View file

@ -67,7 +67,7 @@ This will tell you that everything got generated properly and you are ready to s
Extending Core Classes Extending Core Classes
---------------------- ----------------------
This section will explain how to add a method to String that will be available anywhere in your rails application. This section will explain how to add a method to String that will be available anywhere in your Rails application.
In this example you will add a method to String named `to_squawk`. To begin, create a new test file with a few assertions: In this example you will add a method to String named `to_squawk`. To begin, create a new test file with a few assertions:

View file

@ -965,7 +965,7 @@ When `params[:token]` is one of: `[nil]`, `[nil, nil, ...]` or
`['foo', nil]` it will bypass the test for `nil`, but `IS NULL` or `['foo', nil]` it will bypass the test for `nil`, but `IS NULL` or
`IN ('foo', NULL)` where clauses still will be added to the SQL query. `IN ('foo', NULL)` where clauses still will be added to the SQL query.
To keep rails secure by default, `deep_munge` replaces some of the values with To keep Rails secure by default, `deep_munge` replaces some of the values with
`nil`. Below table shows what the parameters look like based on `JSON` sent in `nil`. Below table shows what the parameters look like based on `JSON` sent in
request: request: