aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* add the TestCase.fixture_path when testing file uploadsRick Olson2006-03-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use example.com as standard (closes #4413) [anna]David Heinemeier Hansson2006-03-251-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable application/x-yaml processing by defaultJamis Buck2006-03-251-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_redirected_to so it works with symbolsJamis Buck2006-03-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Comments, commentsDavid Heinemeier Hansson2006-03-201-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* My beautiful eyes [DHH]David Heinemeier Hansson2006-03-202-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated Kernel#returning for the AP performance patch [DHH]David Heinemeier Hansson2006-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix usage of #returning in ActionController::BaseRick Olson2006-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-206-63/+59
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* If RAW_POST_DATA was set explicitly, use that (closes #4281)David Heinemeier Hansson2006-03-191-6/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added nicer message for assert_redirected_to (closes #4294) [court3nay, ↵Rick Olson2006-03-191-2/+3
| | | | | | Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed XML argument style for respond_to, so type.xml(object.to_xml) no ↵David Heinemeier Hansson2006-03-181-11/+5
| | | | | | longer works -- it wasnt worth the exception git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added easy support for testing file uploads with fixture_file_upload (closes ↵David Heinemeier Hansson2006-03-181-0/+43
| | | | | | #4105) [turnip@turnipspatch.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure xml_simple requests don't blow up if an empty request body is recievedJamis Buck2006-03-181-5/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3936 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ability for relative_url_root to be specified via an environment ↵Nicholas Seckar2006-03-181-2/+11
| | | | | | variable RAILS_RELATIVE_URL_ROOT. Closes #4243. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just use a normal update on the indifferent hashDavid Heinemeier Hansson2006-03-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Integration::Session.accept for setting the HTTP Accept header to use ↵Jamis Buck2006-03-181-1/+6
| | | | | | (defaults to FF 1.5 value) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* rename 'integration_test.rb' -> 'integration.rb'Jamis Buck2006-03-181-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow for respond_to(:html, :js, :xml) (closes #4277) [Caio Chassot]David Heinemeier Hansson2006-03-181-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Mime::Type.parse consider q values (if any)Jamis Buck2006-03-181-13/+67
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* XML-formatted requests are typecast according to "type" attributes for ↵Jamis Buck2006-03-181-1/+43
| | | | | | :xml_simple git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added access to remote_addr in integration tests (closes #4266) [Chad Fowler]David Heinemeier Hansson2006-03-181-7/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Be sure to look at array elements when dasherizing keys of a formatted requestJamis Buck2006-03-171-9/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed proxy support for lighttpd (closes #3267) [stephen_purcell@yahoo.com]David Heinemeier Hansson2006-03-161-13/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Explain thyselfNicholas Seckar2006-03-161-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added protection against proxy setups treating requests as local even when ↵David Heinemeier Hansson2006-03-161-1/+1
| | | | | | they're not #3898 [stephen_purcell@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TestRequest#raw_post that simulate raw_post from CgiRequest (closes ↵David Heinemeier Hansson2006-03-161-0/+10
| | | | | | #3042) [francois.beausoleil@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Breakpoints in running code makes for no fun ;)David Heinemeier Hansson2006-03-161-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixes a bug in routes controller traversing which caused it to fail on for ↵Tobias Lütke2006-03-151-2/+3
| | | | | | double nested controllers. [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Underscore dasherized keys in formatted requestsJamis Buck2006-03-152-2/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add MimeResponds::Responder#any for managing multiple types with identical ↵Jamis Buck2006-03-151-0/+4
| | | | | | responses git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use "mime_type" instead of "format"Jamis Buck2006-03-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Mime::Type#to_sym to do @string.to_sym. Add text/yaml as alias for ↵Jamis Buck2006-03-151-3/+5
| | | | | | Mime::YAML git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the xml_http_request testing method set the HTTP_ACCEPT headerJamis Buck2006-03-141-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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