aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
...
* Document how to disable forgery protection for tests. Useful note for those ↵Jeremy Kemper2007-12-101-1/+7
| | | | | | upgrading from 1.x. Closes #10440 [Trevor Turk] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix doc typo on Dispatcher.dispatch. Closes #10434 [fxn]Jeremy Kemper2007-12-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :xml and :json preserve custom content types. Closes #10388.Jeremy Kemper2007-12-091-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix DoubleRenderError message and leave out mention of returning false from ↵Rick Olson2007-12-081-1/+1
| | | | | | filters. Closes #10380 [fcheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean up some cruft around ActionController::Base#head. Closes #10417 [ssoroka]Rick Olson2007-12-081-12/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ignore illegal seeks on body rewind. Catches CGI errors depending on your ↵Jeremy Kemper2007-12-071-1/+7
| | | | | | httpd. Closes #10404 [Curtis Hawthorne] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed send_file/binary_content for testing (closes #8044) [tolsen]David Heinemeier Hansson2007-12-051-7/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding missing space to documentation of the layout method. Closes #7126 ↵Marcel Molina2007-12-051-1/+1
| | | | | | [orangechicken, jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add example of redirect_to that uses a named route. Closes #7149 [stevenbristol]Marcel Molina2007-12-051-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct example for path parameters to use strings as keys in the hash ↵Marcel Molina2007-12-051-2/+3
| | | | | | rather than symbols. Closes #7160 [akaspick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enhance documentation coverage for fragment caching. Closes #7315 [bscofield]Marcel Molina2007-12-051-14/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-055-10/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add many examples to assertion documentation. Closes #7803 [jeremymcanally]Marcel Molina2007-12-054-37/+128
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add examples in the documentation for various assertions. Closes #9938 [zapnap]Marcel Molina2007-12-053-5/+48
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* When a NonInferrableControllerError is raised, make the proposed fix clearer ↵Marcel Molina2007-12-051-1/+1
| | | | | | in the error message. Closes #10199 [danger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed some of the tags that does not make sense to allow per default in ↵David Heinemeier Hansson2007-12-041-2/+2
| | | | | | the whitelist git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that verification violations with no specified action didn't halt the ↵David Heinemeier Hansson2007-11-301-6/+15
| | | | | | chain (now they do with a 400 Bad Request) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure assert_select_rjs gets counted, Closes #10278 [tarmo]Michael Koziarski2007-11-291-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise UnknownHttpMethod exception for unknown HTTP methods. Closes #10303 ↵Rick Olson2007-11-292-12/+23
| | | | | | [tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* correct confusing commentsMichael Koziarski2007-11-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure the optimisation code for routes doesn't get used if :host, ↵Michael Koziarski2007-11-281-1/+1
| | | | | | :anchor or :port are provided in the hash arguments. [pager, Koz] Closes #10292 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added protection from trailing slashes on page caching (closes #10229) ↵David Heinemeier Hansson2007-11-281-1/+1
| | | | | | [devrieda] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_s bug with namespace routes (closes #10283) [johnb]David Heinemeier Hansson2007-11-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Minor inconsistency in description of render example. Closes #10029 ↵Marcel Molina2007-11-261-2/+2
| | | | | | [ScottSchram] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add #prepend_view_path and #append_view_path instance methods on ↵Rick Olson2007-11-261-3/+22
| | | | | | ActionController::Base for consistency with the class methods. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor sanitizer helpers into HTML classes and make it easy to swap them ↵Rick Olson2007-11-262-0/+174
| | | | | | out with custom implementations. Closes #10129. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that named routes living under resources shouldn't have double slashes ↵David Heinemeier Hansson2007-11-251-1/+1
| | | | | | (closes #10198) [isaacfeliu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve error messages when providing a secret that is too short. Closes ↵Michael Koziarski2007-11-241-4/+5
| | | | | | #10238 [Henrik N] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document that the cookie store is the default session store. Mention the ↵Jeremy Kemper2007-11-222-8/+17
| | | | | | memcached store. Closes #10241 [Josh Susser, Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that cookie sessions use a secret that is at least 30 chars in ↵Michael Koziarski2007-11-211-3/+17
| | | | | | length. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Emphasize the importance of a dictionary attack-proof secret for the cookie ↵David Heinemeier Hansson2007-11-211-1/+4
| | | | | | store git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor cookie_only option to survive multiple requests and add regression ↵Michael Koziarski2007-11-211-3/+7
| | | | | | tests. References #10048. [theflow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that the routing optimisation code isn't used when additional ↵Michael Koziarski2007-11-201-4/+10
| | | | | | arguments are passed to the named route. Closes #10209 [bscofield, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unnecessary route reload in integration tests, obsoleted by [7676]. ↵Michael Koziarski2007-11-191-1/+0
| | | | | | Closes #10094. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #10155)David Heinemeier Hansson2007-11-181-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* memoize host with port and refactor the tests which depend on it changingMichael Koziarski2007-11-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unneeded code to disable optimisations. the defined?(request) stuff ↵Michael Koziarski2007-11-171-3/+0
| | | | | | takes care of this now. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed handling of non-domain hosts (closes #9479) [purp]David Heinemeier Hansson2007-11-071-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-064-25/+27
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken tag in assert_tag documentation. Closes #9037 [mfazekas]Marcel Molina2007-11-061-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for route conditions. Closes #9041 [innu, manfred]Marcel Molina2007-11-061-0/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that ActionController::CgiRequest#host_with_port() should handle ↵David Heinemeier Hansson2007-11-061-3/+3
| | | | | | standard port (closes #10082) [moro] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Minor documentation enhancements and white-space fixes. Closes #9819 [chuyeow]Michael Koziarski2007-11-061-144/+144
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make rescue_from behave like rescue when dealing with subclasses. Closes ↵Michael Koziarski2007-11-061-6/+51
| | | | | | #10079 [fxn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add missing quote to send_file documentation. [developingchris] Closes #10078Michael Koziarski2007-11-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Profile an integration session instead of a single requestJeremy Kemper2007-11-011-87/+58
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor Integration::Runner behavior out of IntegrationTest. Introduce ↵Jeremy Kemper2007-11-011-72/+85
| | | | | | Session#request_count which counts processed requests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Expose the cookie jar as a helper method (before the view would just get the ↵David Heinemeier Hansson2007-10-311-0/+4
| | | | | | raw cookie hash) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: get_ and post_via_redirect take a headers hash. Closes #9130.Jeremy Kemper2007-10-271-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplfy #view_paths implementation. ActionView templates get the exact ↵Rick Olson2007-10-261-24/+27
| | | | | | object, not a dup. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de