aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/rendering.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add `#no_content_type` attribute to `AD::Response`Prem Sichanugrist2014-02-181-6/+4
| | | | | Setting this attribute to `true` will remove the content type header from the request. This is use in `render :body` feature.
* Cleanup `ActionController::Rendering`Prem Sichanugrist2014-02-181-11/+27
|
* Introduce `render :html` for render HTML stringPrem Sichanugrist2014-02-181-2/+2
| | | | | | | | | This is an option for to HTML content with a content type of `text/html`. This rendering option calls `ERB::Util.html_escape` internally to escape unsafe HTML string, so you will have to mark your string as html safe if you have any HTML tag in it. Please see #12374 for more detail.
* Introduce `render :plain` for render plain textPrem Sichanugrist2014-02-181-2/+10
| | | | | | | | This is as an option to render content with a content type of `text/plain`. This is the preferred option if you are planning to render a plain text content. Please see #12374 for more detail.
* Introduce `render :body` for render raw contentPrem Sichanugrist2014-02-181-4/+13
| | | | | | | | | | | | This is an option for sending a raw content back to browser. Note that this rendering option will unset the default content type and does not include "Content-Type" header back in the response. You should only use this option if you are expecting the "Content-Type" header to not be set. More information on "Content-Type" header can be found on RFC 2616, section 7.2.1. Please see #12374 for more detail.
* #presence usedAkshay Vishnoi2013-11-141-5/+1
|
* Remove remaining coupling with AV in MimeRespondsJosé Valim2013-09-091-2/+5
|
* Remove BasicRendering and remove template functionality from AbsC::RenderingJosé Valim2013-09-091-2/+6
|
* render_to_string shouldn't play with response_bodySantiago Pastorino2013-09-041-4/+5
|
* Move BasicRendering to AbstractControllerŁukasz Strzałkowski2013-09-031-28/+0
|
* Make Mime::TEXT default format in AbstractControllerŁukasz Strzałkowski2013-09-031-4/+0
|
* Fix formatting of error messageŁukasz Strzałkowski2013-08-251-2/+1
| | | | Make it oneliner
* Change description of BasicRendering#renderŁukasz Strzałkowski2013-08-251-1/+1
| | | | | | We're not dealing with templates here [ci skip]
* Simplify if statementsŁukasz Strzałkowski2013-08-251-6/+4
|
* Describe BasicRendering shortlyŁukasz Strzałkowski2013-08-251-0/+4
| | | | [ci skip]
* Extend basic rendering, test it in railtiesŁukasz Strzałkowski2013-08-251-3/+16
|
* Fist stab on basic renderingŁukasz Strzałkowski2013-08-251-0/+18
|
* Add #rendered_format method to controllersŁukasz Strzałkowski2013-08-251-4/+4
|
* Revert "Move setting content_type to AV"Łukasz Strzałkowski2013-08-251-0/+1
| | | | This reverts commit f4d602aff6cec80304b131ecfcc2676d0304f0cc.
* Move setting content_type to AVŁukasz Strzałkowski2013-08-251-1/+0
|
* Hook up AV::Rendering on AV intializationŁukasz Strzałkowski2013-08-251-2/+0
|
* Move rendering from AP to AVŁukasz Strzałkowski2013-08-251-1/+1
|
* Return nil for Mime::NullType#refAndrew White2013-04-101-1/+1
|
* Reverts rendering behavior when format is unknownGrzegorz Świrski2013-04-101-1/+1
| | | | | | | | | If a request has unknown format (eg. /foo.bar), the renderer fallbacks to default format. This patch reverts Rails 3.2 behavior after c2267db commit. Fixes issue #9654.
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-1/+1
| | | | | | is being rendered Closes #5025 part 2
* Move render_to_body logic to return a spaced string to AC::RenderingCarlos Antonio da Silva2012-01-171-0/+4
| | | | | | | | | | | This seems to be required only when calling render :partial with an empty collection from a controller. This call happens to return no content, letting the response body empty, which means to Rails that it should go on and try to find a template to render based on the current action name, thus failing hard. Although tests keep all green, we need to check a better way to fix this.
* Refactor render nothing/text => nil logic, and move to right placeCarlos Antonio da Silva2012-01-171-0/+4
| | | | | Options :nothing and :text => nil should be handled by ActionController::Rendering instead.
* Do not inherit from Rack::Response, remove a shit-ton of unused code.José Valim2011-04-191-0/+11
|
* Use Mime::Type references.José Valim2011-02-081-1/+1
|
* Fix indentationSantiago Pastorino2010-11-201-24/+23
|
* Rendering doesn't need RackDelegationwycats2010-10-101-1/+0
|
* Ensure controller filters are executed before stuff starts to happen.José Valim2010-03-131-1/+1
|
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-121-10/+11
| | | | controller (so plugins and/or controllers can overwrite just one method).
* Finally moved the find template logic to the views.José Valim2010-03-081-29/+12
|
* More refactoring. Split _normalize_args and _normalize_options concerns.José Valim2010-03-081-6/+13
|
* Move layout lookup to views.José Valim2010-03-081-1/+1
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-1/+0
| | | | lookup.
* Merge _details_defaults and details_for_renderCarlhuda2010-03-011-4/+0
|
* Change AV formats so they can delegate to the controller. Now users (or ↵Carlhuda2010-03-011-1/+5
| | | | plugins) can override details_for_render in their controllers and add appropriate additional details. Now if only they could *do* something with those details...
* Renamed LocalizedCache to DetailsCache.José Valim2010-02-241-1/+1
|
* Cleanup render callstack and make render(:json => {}, :status => 401) work ↵José Valim2010-02-241-23/+14
| | | | again.
* Include missing modules.José Valim2010-02-221-1/+1
|
* Update RendererYehuda Katz2010-02-181-5/+4
|
* Ensure render :text => resource first tries to invoke :to_text on itJosé Valim2010-02-161-0/+7
|
* Fix rendering of layouts.José Valim2010-01-291-5/+0
|
* Move double render check out of AbstractController.José Valim and Mikel Lindsaar2010-01-231-0/+4
|
* Ensure strings given to render with slash are rendered relative to the ↵José Valim2010-01-221-12/+24
| | | | configured _prefix.
* Bring normalize behavior to AbstractController::RenderingJosé Valim2010-01-201-3/+4
|
* Expose a _render_partial hook as thhe _render_template one and make use of it.José Valim2009-12-311-6/+6
|
* Rename the RenderingController module to just plain RenderingDavid Heinemeier Hansson2009-12-201-0/+57