| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Per discussion at https://github.com/rails/rails/issues/14645#issuecomment-40499409
|
| | | | |
| | | | |
| | | | |
| | | | | |
This was changed in https://github.com/rails/rails/pull/13415/files
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Including replacing a few "smart quotes" with regular quotes (' and "),
for consistency.
[ci skip]
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For consistency with all other documentation, point to where these core
extensions are defined, not where the example code comes from.
[ci skip]
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Logically group the content, so it makes more sense if someone tries to read from start of page to end of page. [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The name of the gem is `uglifier` and all other references
use `uglifier`, not `uglify`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Extend previous changes, include the default line from the application controller that new rails applications are created with:
protect_from_forgery with: :exception
Minor wording changes to align.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I think the changes to the default behaviour mean that rails will throw an exception when an invalid authenticity token is found. The previous proposed code of calling super then sign_out meant that sign_out was never reached - the exception handler never returned.
I think the best approach now is to catch the exception, although I'm not 100% certain on that.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Currently, the section called "How to store your custom translations"
has several subheadings that make no sense, such as "Translations for
ActiveRecord models." These make more sense under the "Overview of the
I18n API Features" section. I moved the "How to store..." section down
to the more appropriate sub-headings "Using Different Backends" and
"Using Different Exception Handlers" and removed the "Customize your
i18n setup" header.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
additional note about routes in functional tests for engines [ci skip]
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Calling `to_sym` on user input opens apps up to Denial of Service attacks, via the symbol table being expanded to consume vast swathes of memory.
It is a fairly common configuration to have DNS configured such that all subdomains route to your Rails app, in which case an attacker visits `www1.foo.com`, `www2.foo.com`, and so on until something gives.
It is far less likely to have this problem with TLDs, so that change was only for consistency.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
[ci skip] Improve doc, fix grammatical issue
|
| | | | | | | |
|
| | | | | | | |
|
| |_|_|/ / /
|/| | | | |
| | | | | |
| | | | | | |
- Section references `form_tag` instead of the `form_for` used in the example
|
| | | | | | |
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
References to ``AppName::Application` removed in favour of ``Rails.application``
as generated with a new rails 4.1 app.
[ci skip]
|
| | | | |
| | | | |
| | | | | |
This is in the note at the end of Section 2: Controller Naming Convention. [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | | |
This is a follow up to 545afc15.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Improve debugging support
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Tested on a brand new app to exactly match current byebug's behaviour.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Move assets precompile (and version) to an initializer
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
sprockets-rails 2.1 needs the precompile list to be available in all
environments.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Be explicit about allowed constraint values, fixes #14702
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
Add more test case for #demodulize, Improve documentation
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
Add after_commit/after_rollback to callback list
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Adding after_commit/after_rollback to list of callbacks in order helps
explain the callback order as well as making it consistent with the API
docs at http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
[ci skip] Update code snippets to latest master (initialization.md).
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Also update the `server.run` example (Replace Mongrel with Puma).
|
|/ / / / / / |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Expand explanation of how to set secrets.yml.
|
| | | | | | | |
|
| | | | | | | |
|
|/ / / / / / |
|
| | | | | | |
|
|/ / / / / |
|