aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Added better support for using the same actions to output for different ↵David Heinemeier Hansson2006-03-115-9/+122
| | | | | | sources depending on the Accept header [DHH] Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assertions in integration sessions proxy to the test instance (only for ↵Jamis Buck2006-03-101-0/+3
| | | | | | sessions created via open_session) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make sure nil @session doesn't mess up wsod stacktracesJamis Buck2006-03-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3834 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move methods from TestResponse into a module, so they can be shared with ↵Jamis Buck2006-03-092-1/+12
| | | | | | response objects in integration tests. (This allows standard functional test assertions to be used in integration tests, like assert_response and assert_template.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration test's url_for now runs in the context of the last request (if ↵Tobias Lütke2006-03-081-10/+5
| | | | | | any) so after post /products/show/1 url_for :action => 'new' will yield /product/new git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem with unloaded ARStore sessions being loaded when they are ↵Jamis Buck2006-03-081-9/+14
| | | | | | garbage collected, causing problems if there were AR objects in the session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make integration testing not interfere with command-line regex test filtersJamis Buck2006-03-071-2/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make IntegrationTest refer to superclass properties using copy-on-writeJamis Buck2006-03-071-0/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Proper options for XmlSimpleDavid Heinemeier Hansson2006-03-072-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* more integration tweaksJamis Buck2006-03-071-8/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* XmlSimple _should_ be the default since XmlNode is not compatible with ↵David Heinemeier Hansson2006-03-072-18/+20
| | | | | | regular parameters -- also known as Why Did My Etech Demo Not Work? [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A few minor tweaks to the integration testing stuffJamis Buck2006-03-071-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixesDavid Heinemeier Hansson2006-03-052-5/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionController::Base.param_parsers now accept symbols. currently supported ↵Tobias Lütke2006-03-052-9/+16
| | | | | | are :xml_node, :xml_simple and :yaml git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new infrastructure support for REST webservices.Tobias Lütke2006-03-056-44/+184
| | | | | | | | | | | | | | | | | By default application/xml posts are handled by creating a XmlNode object with the same name as the root element of the submitted xml. M$ ActionController::Base.param_parsers['application/atom+xml'] = Proc.new do |data| node = REXML::Document.new(post) { node.root.name => node.root } end XmlSimple and Yaml web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functio$ request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias Luetke] Closes #4081 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of that. PStore doesnt support suffix :(David Heinemeier Hansson2006-03-041-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of that. PStore doesnt support suffix :(David Heinemeier Hansson2006-03-041-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CHANGED DEFAILT: File-based sessions now have a suffix of ".rails_session" ↵David Heinemeier Hansson2006-03-041-2/+2
| | | | | | instead of a prefix called "ruby_sess." [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that page caching will only happen if the response code is less than ↵David Heinemeier Hansson2006-03-021-1/+1
| | | | | | 400 (closes #4033) [g.bucher@teti.ch] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* restore elided TestProcess#assigns methodJamis Buck2006-03-011-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make TestProcess methods public for access via Integration::Session. Make ↵Jamis Buck2006-03-012-115/+112
| | | | | | return values from some of the Integration::Session methods sane. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActionController::IntegrationTest to allow high-level testing of the way ↵Jamis Buck2006-02-281-0/+423
| | | | | | the controllers and routes all work together git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove ::Controllers related cruft; fix AP testsNicholas Seckar2006-02-262-4/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check NameErrors and re-raise if they do not match the expected constantNicholas Seckar2006-02-221-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the request method would be sticky in tests (closes #3849) ↵David Heinemeier Hansson2006-02-201-2/+3
| | | | | | [lars@pinds.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :count option to pagination that'll make it possible for the ↵David Heinemeier Hansson2006-02-201-1/+8
| | | | | | ActiveRecord::Base.count call to using something else than * for the count. Especially important for count queries using DISTINCT #3839 [skaes]. Added :select option to Base.count that'll allow you to select something else than * to be counted on. Especially important for count queries using DISTINCT (closes #3839) [skaes]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure backwards compatibility with symbolized action names for ↵David Heinemeier Hansson2006-02-191-1/+1
| | | | | | render_action (closes #3869) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make RJS treat symbolic action names nicely #3861 [Rick Olson]David Heinemeier Hansson2006-02-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The session should be saved even if the filter chain is stoppedDavid Heinemeier Hansson2006-02-121-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that flash wasnt being cleared after components refactoring yesterdayDavid Heinemeier Hansson2006-02-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Flash shouldnt depend on components either [DHH]David Heinemeier Hansson2006-02-122-14/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stopped the massive bleeding of concerns into ActionController::Base. Base ↵David Heinemeier Hansson2006-02-127-101/+179
| | | | | | no longer knows about flash, filters, or components. This may well have introduced some instability, please do test with apps, especially the ones using components. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add caution and restyle componentsDavid Heinemeier Hansson2006-02-123-50/+60
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The components module should also contain the options that pertain to it, so ↵David Heinemeier Hansson2006-02-122-70/+77
| | | | | | collect it all with ClassMethods and InstanceMethods git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-098-122/+154
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Fix pagination problems when using includeMichael Koziarski2006-02-091-7/+6
| | | | | | | | | | * Introduce Unit Tests for pagination * Allow count to work with :include by using count distinct. [Kevin Clark & Jeremy Hopple] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace dubious controller parent class in filter docs. Closes #3655, #3722.Marcel Molina2006-02-082-5/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't let arbitrary classes match as controllersNicholas Seckar2006-02-041-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Routing tests. Fix routing where failing to match a controller would ↵Nicholas Seckar2006-02-041-4/+3
| | | | | | prevent the rest of routes from being attempted. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fixed small bug in routing which caused the traverse_to_controller mechanism ↵Tobias Lütke2006-02-041-1/+1
| | | | | | | | | to drop out on Multi::Nested::Controllers git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just go with Subclasses instead of OnlySubclassesDavid Heinemeier Hansson2006-02-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just go with Subclasses instead of OnlySubclassesDavid Heinemeier Hansson2006-02-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unneeded loggingNicholas Seckar2006-02-041-4/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix controller resolution to avoid accidentally inheriting a controller from ↵Nicholas Seckar2006-02-041-2/+6
| | | | | | a parent module. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3530 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Set sweeper's @controller to nil after a request so that the controller may ↵Nicholas Seckar2006-02-041-0/+2
| | | | | | be collected between requests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove LoadingModuleNicholas Seckar2006-02-031-7/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Reloadable::OnlySubclasses which handles the common case where a base ↵Nicholas Seckar2006-02-022-12/+5
| | | | | | class should not be reloaded, but its subclasses should be. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Further improvements to reloading codeNicholas Seckar2006-02-022-7/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Subclasses of ActionController::Caching::Sweeper should be ReloadableSam Stephenson2006-02-011-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* If included_modules doesnt take a parameter, we shouldnt eitherDavid Heinemeier Hansson2006-02-012-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de