aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/layouts_and_rendering.md
Commit message (Collapse)AuthorAgeFilesLines
* Update the rendering guide to match the current behaviorRafael Mendonça França2016-03-051-10/+9
| | | | | | | | In the latest security releases render with a trailing slash no more call render :file. Also add a note about the security implications of using it with user parameters.
* Change 'a HTTP' to 'an HTTP' [ci skip]Santosh Wadghule2016-03-031-1/+1
|
* Fix grammar `a` to `an` [ci skip]Ryuta Kamizono2016-02-131-1/+1
|
* remove description of `render :nothing` from guide [ci skip]yuuji.yaginuma2016-02-091-1/+1
| | | | `:nothing` option was deprecated in 44781b6e9790d90b4f8b9a41d2b2c114b1a582ee
* Make text about render :html option clearer to state, text will get escaped ↵Vipul A M2016-01-191-1/+1
| | | | | | | if not marked as safe by using html_safe Fixes #22648 [ci skip]
* remove content_tag_for exampleRyo Hashimoto2015-12-221-7/+5
|
* Deprecate `redirect_to :back`Derek Prior2015-12-161-9/+4
| | | | | | | Applications that use `redirect_to :back` can be forced to 500 by clients that do not send the HTTP `Referer` (sic) header. `redirect_back` requires the user to consider this possibility up front and avoids this trivially-caused application error.
* Add `redirect_back` for safer referrer redirectsDerek Prior2015-12-161-0/+8
| | | | | | | | | | | | | | | | | `redirect_to :back` is a somewhat common pattern in Rails apps, but it is not completely safe. There are a number of circumstances where HTTP referrer information is not available on the request. This happens often with bot traffic and occasionally to user traffic depending on browser security settings. When there is no referrer available on the request, `redirect_to :back` will raise `ActionController::RedirectBackError`, usually resulting in an application error. `redirect_back` takes a required `fallback_location` keyword argument that specifies the redirect when the referrer information is not available. This prevents 500 errors caused by `ActionController::RedirectBackError`.
* Fix typo in docs [ci skip]Scott González2015-10-071-1/+1
|
* Add a missing period to layouts_and_rendering.md [ci skip]Juanito Fatas2015-09-241-1/+1
|
* Rack changed their status codes to IETF RFC 7231Benjamin Quorning2015-08-211-4/+3
| | | | rack/rack#754
* Deprecate `:nothing` option for render methodMehmet Emin İNAÇ2015-05-281-26/+0
| | | | `head` method works similar to `render` method with `:nothing` option
* Fix typos and improve the documentationJon Atack2015-04-151-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squash of the following commits, from first to last: - Fix minor, random things I’ve come across lately that individually did not seem worth making a PR for, so I saved them for one commit. One common error is using “it’s” (which is an abbreviation of “it is”) when the possessive “its” should be used for indicating possession. - Changes include the name of a test, so remove the `[skip ci]` (thanks @senny). - Line wrap the changes at 80 chars and add one more doc fix. - Add a missing line wrap in the Contributing to Ruby on Rails Guide. - Line wrap the `TIP` section in the Contributing to Ruby on Rails Guide as well. Rendering the guide locally with `bundle exec rake guides:generate` did not show any change in on-screen formatting after adding the line wrap. The HTML generated is (extra line added to illustrate where the line wrap takes place): <div class="info"><p>Please squash your commits into a single commit when appropriate. This simplifies future cherry picks and also keeps the git log clean.</p></div> - Squash commits.
* [ci skip] Remove unnecessary linesyui-knk2015-04-011-2/+0
|
* Some documentation edits [ci skip]Robin Dupret2015-03-051-2/+3
| | | | | | * Fix a few typos * Wrap some lines around 80 chars * Rephrase some statements
* fix spelling, `ERb` -> `ERB` [ci skip]yuuji.yaginuma2015-03-041-1/+1
|
* Fix wording in template inheritance section of layout guide [ci skip]Prathamesh Sonpatki2015-02-271-1/+1
|
* Merge pull request #16738 from net-engine/guides-template-inheritanceRafael Mendonça França2015-02-251-0/+36
|\ | | | | Guides: Template Inheritance (new in guides, feature in since 3.1)
| * Merge remote-tracking branch 'origin/master' into guides-template-inheritanceecoologic2014-10-071-1/+2
| |\
| * | 2.2.14.5 Template Inheritance (new in guide, feature in since 3.1)erik2014-08-291-0/+36
| | |
* | | Merge pull request #15700 from maurogeorge/guides-local_assignsRafael Mendonça França2015-02-181-0/+30
|\ \ \ | | | | | | | | | | | | Add docs about local_assigns on guides
| * | | Add docs about local_assigns on guidesMauro George2014-06-131-0/+30
| | | | | | | | | | | | | | | | [ci skip]
* | | | fix syntax error in render partial example [ci skip]yuuji.yaginuma2015-02-151-2/+2
| | | |
* | | | Add :formats to options list of render documentation.Diogo Benicá2015-01-211-1/+11
| | | |
* | | | Merge pull request #18503 from vipulnsward/guides-in-onXavier Noria2015-01-141-1/+1
|\ \ \ \ | | | | | | | | | | Changed `IN` to `ON` in markdown renderer condition
| * | | | - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | - Changed `IN` to `ON` in all note sentences in guides.
* | | | | Change a to an for HTML word [ci skip]Santosh Wadghule2015-01-131-1/+1
|/ / / /
* | | | Merge pull request #17974 from killthekitten/fix-render-blockRafael Mendonça França2015-01-021-0/+36
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make possible to use blocks with short version of render partial Conflicts: actionview/CHANGELOG.md
| * | | | Make possible to use blocks with short version of render partialNikolay Shebanov2014-12-191-0/+36
| | | | |
* | | | | warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | | | | | | | | | | | | | | | | | References #18148.
* | | | | Describe gotcha for 'status' option [ci skip]J Connolly2014-12-221-0/+3
|/ / / /
* | | | [ci skip] Fix output of video_tag helperAnton Cherepanov2014-12-071-1/+4
| | | |
* | | | In render file, by default the current layout is rendered alwaysyuktikhurana2014-10-011-1/+1
| |_|/ |/| |
* | | Clean up grammar from #16752 [ci skip]Zachary Scott2014-08-301-2/+2
| | |
* | | [ci skip] add line about text layoutshruti27912014-08-301-1/+2
| |/ |/|
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-08-191-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb actionview/lib/action_view/vendor/html-scanner/html/sanitizer.rb activerecord/lib/active_record/type/value.rb
| * | Uppercase HTML in docs.Hendy Tanata2014-08-081-1/+1
| | | | | | | | | | | | [skip ci]
* | | [ci skip] Fix sample code in Layouts and Rendering guideyuuji.yaginuma2014-08-171-1/+1
|/ /
* / Small typoAnton Cherepanov2014-06-231-1/+1
|/
* Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]John Kelly Ferguson2014-05-211-12/+12
|
* Do note remove `Content-Type` when `render :body`Prem Sichanugrist2014-03-051-2/+5
| | | | | | | | | | | | | `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.
* Update guides for new rendering optionsPrem Sichanugrist2014-02-181-4/+36
| | | | | * Introduces `:plain`, `:html`, `:body` render option. * Update guide to use `render :plain` instead of `render :text`.
* Simplify doc [ci skip]Vijay Dev2014-02-091-1/+1
| | | | | | The `as` option was already explained in a previous example and doesn't need to be repeated. Explain only the `locals` option which the example is meant for.
* Merge pull request #13630 from seapy/masterVijay Dev2014-02-091-2/+2
|\ | | | | Fixed typo [ci skip]
| * Fixed typo [ci skip]seapy2014-01-081-2/+2
| | | | | | | | singular is more suited to
* | [ci skip] - error_messages_for has been deprecated since 2.3.8 - lets reduce ↵leriksen2014-01-101-2/+0
|/ | | | any confusion for users
* Improved documents [ci skip]Kuldeep Aggarwal2013-12-141-1/+1
|
* Typo and grammatical fixes [ci skip]Akshay Vishnoi2013-12-021-1/+1
|
* [ci skip] Fix curl response output and use strong parameters in update action.Juanito Fatas2013-11-131-4/+3
|
* Fix status code in documents [ci skip]Satoshi Ebisawa2013-08-011-3/+3
| | | | | RFC 6585 Additional HTTP Status Codes http://www.ietf.org/rfc/rfc6585.txt