aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Add verification to scaffolds (generated and reflection based). Require ↵Michael Koziarski2006-03-142-1/+6
| | | | | | POST for unsafe actions [Michael Koziarski]. Closes #2601 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplify controller_pathNicholas Seckar2006-03-132-10/+23
| | | | | | | Cache File.directory? calls to avoid filesystem calls when using layouts git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Always use application/xml, then the charset is determined by the XML docDavid Heinemeier Hansson2006-03-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The mere existance of a rjs file shouldnt cause the layout to disappear. ↵David Heinemeier Hansson2006-03-131-1/+1
| | | | | | Made it easier to specify a :with on observer_field git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The mere existance of a rjs file shouldnt cause the layout to disappear. ↵David Heinemeier Hansson2006-03-131-1/+3
| | | | | | Made it easier to specify a :with on observer_field git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rendering xml shouldnt happen inside any layout. Added class proxying to ↵David Heinemeier Hansson2006-03-133-8/+34
| | | | | | RJS, so you can call page.field.clear("my_field") to generate Field.clear("my_field");. Added :content_type option to render, so you can change the content type on the fly. Do type/subtype reordering of Accept header preferences for xml types (aka make Firefox work with respond_to). CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prepare for mime type reordering depending on the branch [DHH]David Heinemeier Hansson2006-03-122-4/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Default mime type for XML should be application/xml [DHH]David Heinemeier Hansson2006-03-121-13/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mime types are separated by a comma, not semicolon, in the Accept header. ↵David Heinemeier Hansson2006-03-125-11/+19
| | | | | | Also switch all internal configuration of mime types away from strings and over to Mime::Type [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added synonym and custom type handling to respond_to [DHH]David Heinemeier Hansson2006-03-123-41/+51
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Assume that we accept what we give [DHH]David Heinemeier Hansson2006-03-122-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added defaults to respond_to [DHH]David Heinemeier Hansson2006-03-121-2/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to render action/template/file of a specific extension (and ↵David Heinemeier Hansson2006-03-121-1/+1
| | | | | | here by template type). This means you can have multiple templates with the same name but a different extension [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More integration testing tweaksJamis Buck2006-03-121-7/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don'tt abort rake when rendering the _trace.rhtml templateNicholas Seckar2006-03-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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