aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_controller_overview.md
Commit message (Collapse)AuthorAgeFilesLines
* [ci skip] escape under scoreyui-knk2015-02-131-1/+1
|
* - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | - Changed `IN` to `ON` in all note sentences in guides.
* Add a note about non-buffering servers for AC::LiveAditya Kapoor2014-12-271-0/+5
| | | | [ci skip]
* warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | References #18148.
* Don't convert empty arrays to nils when deep munging paramsChris Sinjakli2014-12-151-2/+2
|
* Remove custom errors page section from the guidesYuki Nishijima2014-11-281-58/+1
| | | | | | | | | | | | | | This pattern is too problematic and introduces a lot of edge cases: * On 4.2, the issue https://github.com/rails/rails/issues/15124 is back again. * needs to define each action for each http status otherwise the router raises ActionController::RoutingError (No route matches). * If the router has `match "/*username",...` and some action is missing, Rails will pick up the "match" and try to do its job. * encourages people to copy & paste programming. Not DRY. [ci skip]
* [ci skip] No need to indent here (AC overview).Juanito Fatas2014-10-251-6/+6
|
* Improve the warning a bit [ci skip]Rafael Mendonça França2014-10-161-1/+1
|
* Merge pull request #15827 from ↵Rafael Mendonça França2014-10-161-1/+3
|\ | | | | | | | | | | yuki24/another-improvements-for-dynamic-error-pages A warning line should look like a warning section in Guides
| * A warning line should look like a warning sectionYuki Nishijima2014-06-191-1/+3
| | | | | | | | [ci skip]
* | [guides] Use `match ..., via: :all` in the custom exceptions app [ci skip]Yuki Nishijima2014-09-061-3/+3
| | | | | | | | | | Using `get` results in an unexpected error page(returning empty body) for requests of other HTTP mehtods other than GET. Use `match ..., via: :all` so the exceptions app can be more stable.
* | Add warning for `rescue_from Exception` and `rescue_from StandardError`Yuki Nishijima2014-06-191-0/+2
|/ | | | [ci skip]
* ErrorsController shouldn't inherit ApplicationController, but ↵Yuki Nishijima2014-06-191-1/+1
| | | | | | | | | ActionController::Base Inheriting `ApplicationController` often causes an issue as it always has before/after actions. It should encourage to use `ActionController::Base` instead. [ci skip]
* Create custom errors page on ActionController guidesMauro George2014-06-191-0/+55
| | | | [ci skip]
* Fix typo in ActionController OverviewAri Pollak2014-06-021-2/+2
| | | | * Should say "sensitive" instead of "sensible"
* "subhash" --> "sub-hash"Akshay Vishnoi2014-04-191-1/+1
|
* Update documentation to use Rails.application insteadMarcel Morgan2014-04-131-3/+3
| | | | | | | References to ``AppName::Application` removed in favour of ``Rails.application`` as generated with a new rails 4.1 app. [ci skip]
* Missing 'are' in note - [ci skip]Afshin Mokhtari2014-04-121-1/+1
| | | This is in the note at the end of Section 2: Controller Naming Convention. [ci skip]
* Added a warning about serializing data with JSON cookie jars [skip ci]Godfrey Chan2014-03-191-0/+24
| | | | Closes #14409
* [ci skip] use secrets.yml instead of secret_token.rb in the action ↵Brian Thomas Storti2014-02-271-3/+18
| | | | controller guide
* Update guides for new rendering optionsPrem Sichanugrist2014-02-181-1/+1
| | | | | * Introduces `:plain`, `:html`, `:body` render option. * Update guide to use `render :plain` instead of `render :text`.
* Updated CHANGELOG, docs, guides and release notes.Godfrey Chan2014-02-111-7/+12
| | | | Also added a `cookies_serializer.rb` initializer to the app template.
* Renamed session_serializer option to cookies_serializerGodfrey Chan2014-02-111-16/+27
|
* Modify the session serializer implementationGuillermo Iguaran2014-01-301-11/+5
| | | | | Rename allowed options to :marshal and :json, for custom serializers only allow the use of custom classes.
* Fix documentation of new controller filters api [ci skip]Kassio Borges2014-01-291-2/+2
| | | | | | | | | The api for filters with classes change and the guides weren't updated. Now the class must respond for methods with the same name as the filter, so the `before_action` calls a `before` method, and so on. The method `#filter` has been deprecated in 4.0.0 and has been removed in 4.1.0: #7560
* Allow session serializer key in config.session_storeLukasz Sarnacki2014-01-291-0/+22
| | | | | | | | | | | | | MessageEncryptor has :serializer option, where any serializer object can be passed. This commit make it possible to set this serializer from configuration level. There are predefined serializers (:marshal_serializer, :json_serialzier) and custom serializer can be passed as String, Symbol (camelized and constantized in ActionDispatch::Session namepspace) or serializer object. Default :json_serializer was also added to generators to provide secure defalt.
* Log which keys were set to nil in deep_mungeLukasz Sarnacki2014-01-281-0/+4
| | | | | | | | deep_munge solves CVE-2013-0155 security vulnerability, but its behaviour is definately confuisng. This commit adds logging to deep_munge. It logs keys for which values were set to nil. Also mentions in guides were added.
* Change all "can not"s to the correct "cannot".T.J. Schuck2014-01-031-1/+1
|
* [ci skip] Add missing flash message in block filter example.Juanito Fatas2014-01-011-2/+5
| | | | Also make all three examples consistent.
* Fix typo [ci skip]Sıtkı Bağdat2013-12-181-1/+1
|
* sync example and documentation for strong_parameters hash whitelisting.Yves Senn2013-11-261-5/+7
| | | | | | | | | [ci skip] This is a follow up to #12609 and integrates #12158. Thanks @aspiers. Closes #12158.
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-11-241-1/+1
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
| * Update action_controller_overview.md [ci skip]Harshad Sabne2013-11-151-1/+1
| | | | | | Code style adherence
* | removes redundant curly brackets in example code [ci skip]Xavier Noria2013-11-081-1/+1
| |
* | Fix undefined method error for NilClasscorwinkelly2013-10-231-1/+1
| | | | | | Add .try to prevent undefined method error for NilClass.
* | Update workaround for "Outside the Scope of Strong Parameters" corwinkelly2013-10-221-3/+1
|/ | | The previous example of how to permit a hash of unknown keys used .tap, but had the side effect of logging an "Unpermitted parameters" message despite being a successful workaround. The proposed workaround is ever so slightly better, imo, because it won't result in an "Unpermitted parameters" message being logged.
* Use ActiveRecord::Base#update! instead of #update_attributes!Zachary Scott2013-09-281-1/+1
|
* Use Ruby on Rails Coding Conventions for code examples in the guidesPaul Nikitochkin2013-09-061-22/+22
| | | | | | | | * Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
* cleans the guides sources from fancy non-ASCII stuffXavier Noria2013-08-231-2/+2
|
* ActionController::Live documentation in the guides.wangjohn2013-07-131-0/+86
| | | | | I'm adding documentation to the action_controller_overview guide which should tell people how to stream arbitrary data.
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2013-07-061-1/+1
|\
| * cookies are encrypted starting Rails 4Neeraj Singh2013-06-291-1/+1
| |
* | Specify request method in guides [ci skip]Mihail Evsyukov2013-07-041-1/+1
| |
* | Using preferred find_by syntax in guidesCristian Planas2013-07-011-1/+1
|/
* Mention Content-Type for JSON params parsing.Gustavo Delfino2013-06-241-1/+1
| | | | http://stackoverflow.com/questions/8501021/rails-json-request-is-not-parsed-correctly-into-post-parameters
* Consistent use of one space only after punctuationSunny Ripert2013-05-281-1/+1
|
* Fix Typo xml -> XML, json -> JSONPrathamesh Sonpatki2013-05-081-2/+2
|
* Ruby 1.9 hash syntax for action controller guideYves Senn2013-04-151-5/+5
|
* Typos/grammar fixesJonathan Roes2013-04-031-3/+3
|
* Merge branch 'master' of github.com:lifo/docrailsOliver Jakubiec2013-04-021-25/+16
|\