| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
sikachu/master-revert-render-body-remove-content-type
Do note remove `Content-Type` when `render :body`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`render :body` should just not set the `Content-Type` header. By
removing the header, it breaks the compatibility with other parts.
After this commit, `render :body` will returns `text/html` content type,
sets by default from `ActionDispatch::Response`, and it will preserve
the overridden content type if you override it.
Fixes #14197, #14238
This partially reverts commit 3047376870d4a7adc7ff15c3cb4852e073c8f1da.
|
|/ / / /
| | | |
| | | |
| | | | |
Now the initial value of ActiveRecord.default_timezone is always :utc
|
|/ / /
| | |
| | |
| | | |
This is a follow up to a668beffd64106a1e1fedb71cc25eaaa11baf0c1
|
| | |
| | |
| | |
| | | |
use secrets.yml instead of secret_token.rb
|
| | |
| | |
| | |
| | |
| | | |
Fix a few typos. #present_in has been changed to #presence_in through
commit d61baee5.
|
| | |
| | |
| | |
| | | |
controller guide
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Both examples given are incorrect, and no one can seem to come up with
a realistic situation where this is an actual problem. For now, it seems like
the best thing to do is just scrap the section altogether.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We noticed the rails gem increased in size between the beta and rc
versions, and the reason is that some guides images were updated but not
properly optimized, and one image changed from png to jpg, way bigger.
Converting the jpg image back to png, and using ImageOptim to optimize
all the images for web view, improves the situation [ci skip].
---
In current master/4-1-stable:
508K guides/assets/images/getting_started/
In v4.1.0.beta1:
268K guides/assets/images/getting_started/
In 4-0-stable
328K guides/assets/images/getting_started/
After the patch:
260K guides/assets/images/getting_started/
|
| | | |
|
| | |
| | |
| | |
| | | |
Remove 4-1 related entries from master [ci skip]
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Fix the javascript path in guide for asset modules [skip ci]
|
| | | |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
a piece of documentation.
This can be useful for trying out combinations of markup and code, as
discussed in rails/rails@225bcad
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This change fixes the 42 instances of `end tag for "meta" omitted, but
OMITTAG NO was specified` error message that comes up when the full
railsguides are validated.
Full error list at
https://gist.github.com/prakashmurthy/9086679.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Introduces `:plain`, `:html`, `:body` render option.
* Update guide to use `render :plain` instead of `render :text`.
|
|\ \ \ \
| | | | |
| | | | | |
Document `default_scope` changes
|
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
and upgrating guides
[ci skip]
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| |_|/ /
|/| | | |
Fix coffeescript sample [ci skip]
|
| | | |
| | | |
| | | | |
Replace bind() with on() as suggested by the JQuery bind() documentation: https://api.jquery.com/bind/
|
|\ \ \ \
| | | | |
| | | | | |
Guides fixes
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Explain how form_for :article is able to pull in the properties of @article
Make it clear that article_id is generated due to the association set up
Add link to the rails function that uses X-Sendfile.
Add links to apache and nginx docs for the header
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Cookies serializer improvements
|
| | | | |
| | | | |
| | | | |
| | | | | |
Also added a `cookies_serializer.rb` initializer to the app template.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
[Testing Guide] Explain usage of assert_redirected_to with named routes and ActiveRecord objects [ci skip]
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Active Record objects [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Reason: i18n whitelists now locales without passing through symbols,
see https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L278.
Therefore, this snippet is no longer a good practice.
This reverts commit ec0664a6eb8906fcd31a53a1efad69bdc7fe6f5b.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`I18n.locale=` symbolizes its argument, so passing it `params[:locale]`
allows one to DOS your application by visiting `...?locale=` URLS
repeatedly, with unique values, until the never-GCed symbols monopolize
the available memory.
|
| | | | | |
|