aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Make sure render :update support the options hash. Closes #11088 ↵Michael Koziarski2008-02-123-9/+11
| | | | | | [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* remove support for ampersand-delimited cookie valuesJamis Buck2008-02-121-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for naming concrete classes in sweeper declarations [DHH]David Heinemeier Hansson2008-02-071-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove ERB trim variables from trace template in case ↵Rick Olson2008-02-071-5/+5
| | | | | | ActionView::Base.erb_trim_mode is changed in the application. Closes #10098 [tpope, kampers] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug with setting Request#format= after the getter has cached the value. ↵Rick Olson2008-02-071-1/+1
| | | | | | Closes #10889 [cch1] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct inconsistencies in RequestForgeryProtection docs. #11032 [mislav]Rick Olson2008-02-061-34/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a Template class to ActionView. Closes #11024 [lifofifo]Michael Koziarski2008-02-061-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add --measure option to script/performance/request to set ruby-prof measure ↵Jeremy Kemper2008-02-031-1/+4
| | | | | | mode: process_time, wall_time, cpu_time, allocations, memory. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce map.resources :cards, :as => 'tarjetas' to use a custom resource ↵Jeremy Kemper2008-02-021-2/+10
| | | | | | name in the URL: cards_path == '/tarjetas'. Closes #10578. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TestSession supports indifferent access. Closes #7372.Jeremy Kemper2008-02-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't split cookies on comma also. References r8505.Jeremy Kemper2008-02-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the non inferrable controller message a little friendlier. [Koz]Michael Koziarski2008-01-301-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_routing aware of the HTTP method used. Closes #8039 [mpalmer]Michael Koziarski2008-01-301-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for polymorphic URL helpers, make API consistent for ↵Michael Koziarski2008-01-271-15/+90
| | | | | | | | | polymorphic_path and polymorphic_url. Closes #10883 [mislav] Closes #8782 [gbuesing] Closes #8720 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make it simpler to make the root route an alias for another route. Closes ↵Michael Koziarski2008-01-262-0/+11
| | | | | | #10818 [bscofield] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct documentation for dom_id [jbarnette] Closes #10775Michael Koziarski2008-01-261-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Preserve integration session's request_countJeremy Kemper2008-01-231-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. ↵Michael Koziarski2008-01-213-18/+12
| | | | | | Closes #10800 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure mime types can be compared with symbols. Closes #10796 [bscofield]Michael Koziarski2008-01-201-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert r8669 for now, breaks Action Mailer. Reopens #10800.Jeremy Kemper2008-01-193-12/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance: optimize route recognition. Large speedup for apps with many ↵Jeremy Kemper2008-01-193-13/+163
| | | | | | resource routes. Closes #10835. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TemplateFinder to handle view paths and lookups. Closes #10800.Jeremy Kemper2008-01-193-18/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract ActiveSupport::Callbacks from Active Record, test case setup and ↵Jeremy Kemper2008-01-191-38/+13
| | | | | | teardown, and ActionController::Dispatcher. Closes #10727. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Restructure routing into several smaller files. References #10835 [oleganza]Michael Koziarski2008-01-177-1179/+1197
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that the tests use the instance-level view-paths correctly. Closes ↵Michael Koziarski2008-01-161-5/+5
| | | | | | #10820 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* don't misbehave when redirecting to nil. Closes #10272 [farleyknight]Michael Koziarski2008-01-121-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce send_file :x_sendfile => true to send an X-Sendfile response header.Jeremy Kemper2008-01-111-23/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Provide a nicer way to access headers. request.headers["Content-Type"] ↵Michael Koziarski2008-01-112-1/+34
| | | | | | instead of request.headers["HTTP_CONTENT_TYPE"] [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move fragment caching from special helper methods to TemplateHandler. Closes ↵Jeremy Kemper2008-01-101-26/+0
| | | | | | #10754 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* UrlWriter respects relative_url_root. Closes #10748.Jeremy Kemper2008-01-101-28/+29
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: cookie store delete sets nil value instead of empty stringJeremy Kemper2008-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filter procs must take 1 or 2 arguments. Raise ArgumentError otherwise.Jeremy Kemper2008-01-071-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The asset_host block takes the controller request as an optional second ↵Jeremy Kemper2008-01-061-3/+4
| | | | | | argument. Example: use a single asset host for SSL requests. Closes #10549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support render :text => nil. Closes #6684.Jeremy Kemper2008-01-061-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-052-20/+13
| | | | | | | | | [Josh Peek] * TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_response failures include the exception message. Closes #10688.Jeremy Kemper2008-01-051-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-036-678/+590
| | | | | | ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored ActionController::Verification and improved docs (closes #10681) ↵David Heinemeier Hansson2008-01-031-57/+73
| | | | | | [jamesh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made fragment caching in views work for rjs and builder as well (closes ↵David Heinemeier Hansson2008-01-031-3/+29
| | | | | | #6642) [zsombor] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick ↵Jeremy Kemper2007-12-282-2/+2
| | | | | | Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that test case setup is run even if overridden. Closes #10382.Jeremy Kemper2007-12-281-3/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use extract_options! rather than Hash test + pop. Closes #10628 [ssoroka]Jeremy Kemper2007-12-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: file uploads. References #1689 [Frederick Cheung]Jeremy Kemper2007-12-271-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce native mongrel handler and push mutex into dispatcher.Jeremy Kemper2007-12-271-6/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix HTML Sanitizer to allow trailing spaces in CSS style attributes. Closes ↵Rick Olson2007-12-231-2/+2
| | | | | | #10566 [wesley.moxam] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests use ActionController::Dispatcher rather than the old ↵Jeremy Kemper2007-12-221-2/+3
| | | | | | Dispatcher. Closes #10596. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fold reset! into the run method directly. Make -n options compatible with ↵Jeremy Kemper2007-12-221-7/+6
| | | | | | Ruby 1.9 whose option parser seems to call the block with nil value even when the option is omitted. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Request profiler resets after warmup and each run so you don't have to do it ↵Jeremy Kemper2007-12-221-3/+13
| | | | | | in your session script. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Request profiler: use actual script path and line numbers for backtraces.Jeremy Kemper2007-12-221-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update layout docs. Closes #10584 [Cheah Chu Yeow]Jeremy Kemper2007-12-211-15/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de