aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
Commit message (Collapse)AuthorAgeFilesLines
...
* Use 400 Bad Request status for unrescued ActiveRecord::RecordInvalid exceptions.Jeremy Kemper2006-12-223-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix date helper :include_blank regression. Closes #3811. [mhw]Jeremy Kemper2006-12-202-1/+44
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Silence log_error deprecation warnings from inspecting deprecated instance ↵Jeremy Kemper2006-12-193-9/+19
| | | | | | variables. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only cache GET requests with a 200 OK response. Closes #6514, #6743.Jeremy Kemper2006-12-193-29/+94
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a 'referer' attribute to TestRequestJamis Buck2006-12-192-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]Rick Olson2006-12-193-1/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Another test that the deprecation spout is plugged.Jeremy Kemper2006-12-171-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Work around a cross-platform number_to_precision inconsistency in unit ↵Jeremy Kemper2006-12-171-3/+7
| | | | | | tests. Closes #6315. [jesperron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix HTML::Node to output double quotes instead of single quotes. Closes ↵Rick Olson2006-12-143-6/+8
| | | | | | #6845 [mitreandy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correctly report which filter halted the chain. References #6699.Jeremy Kemper2006-12-122-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix a bug in Routing where a parameter taken from the path of the current ↵Nicholas Seckar2006-12-093-3/+16
| | | | | | request could not be used as a query parameter for the next. Closes #6752. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unrescued ActiveRecord::RecordNotFound responds with 404 instead of 500.Jeremy Kemper2006-12-083-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved auto_link to match more valid urls correctlyTobias Lütke2006-12-073-14/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added tests checking for nested singleton resourcesRick Olson2006-12-071-0/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix docs for singleton resourcesRick Olson2006-12-071-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add singleton resources. [Rick Olson]Rick Olson2006-12-073-8/+209
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove support for json in X-Post-Data-Format header since it's for backward ↵Jeremy Kemper2006-12-061-2/+0
| | | | | | compatibility only. References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unrelated render :yaml changes. References #4185.Jeremy Kemper2006-12-062-13/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update changelog to reflect application/json content type.Jeremy Kemper2006-12-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More thorough JSON tests. Use application/json by default, per rfc4627. ↵Jeremy Kemper2006-12-063-14/+26
| | | | | | References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* respond_to recognizes JSON. render :json => @person.to_json automatically ↵Jeremy Kemper2006-12-066-0/+79
| | | | | | sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bob's raining patches: fixes date_helper bugs and usability issues. ↵Jeremy Kemper2006-12-065-275/+1005
| | | | | | References #3811. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dropped the idea of automatically routing :format for the vanilla routes -- ↵David Heinemeier Hansson2006-12-043-4/+25
| | | | | | that will be a treat for map.resources. Deprecated the name route root as it'll be used as a shortcut for map.connect '' in Rails 2.0 (Rails 1.2). Added map.root as an alias for map.connect '' (Rails 2.0) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#format to return the format used for the request as a mime ↵David Heinemeier Hansson2006-12-024-0/+32
| | | | | | type. If no format is specified, the first Request#accepts type is used. This means you can stop using respond_to for anything else than responses [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option for extension aliases to mime type registration [DHH] ↵David Heinemeier Hansson2006-12-024-65/+33
| | | | | | Refactored default mime types to use the extension framework instead of just declaring themselves verbosely git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Premature commitDavid Heinemeier Hansson2006-11-303-20/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that script/server running against Mongrel should tail the proper log ↵David Heinemeier Hansson2006-11-303-0/+20
| | | | | | regardless of the environment [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge [5645] from 1.2.Jeremy Kemper2006-11-281-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* @response.redirect_url works with 201 Created responses: just return ↵Jeremy Kemper2006-11-283-1/+22
| | | | | | headers['Location'] rather than checking the response status. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge [5641] to TrunkMichael Koziarski2006-11-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use Location rather than location header.Jeremy Kemper2006-11-263-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that redirects should set "Location" header, not "location", and remove ↵David Heinemeier Hansson2006-11-262-8/+1
| | | | | | dead CGI.redirect git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* uses_component_template_root looks at caller[0] which turns up the ↵Jeremy Kemper2006-11-262-2/+3
| | | | | | deprecation method rather than the controller. Use caller[1] instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* strip_tags passes through blank args such as nil or "". Closes #6702, ↵Jeremy Kemper2006-11-263-3/+3
| | | | | | references #2229. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont set default charset if the response is sending a file. Closes #6689 [DHH]David Heinemeier Hansson2006-11-252-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CSV to Mime::SET so that respond_to csv will workTobias Lütke2006-11-242-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that HEAD should return the proper Content-Length header (that is, ↵David Heinemeier Hansson2006-11-232-8/+18
| | | | | | actually use @body.size, not just 0) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Added GET-masquarading for HEAD, so request.method will return :get even ↵David Heinemeier Hansson2006-11-233-7/+21
| | | | | | for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you dont even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added text/csv as a default mime type and included example on how to make ↵David Heinemeier Hansson2006-11-231-0/+5
| | | | | | your own in config/environment.rb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Routing to complain when :controller is not specified by a route. ↵Nicholas Seckar2006-11-224-2/+14
| | | | | | Closes #6669. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure .morph makes it inThomas Fuchs2006-11-201-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure render_to_string cleans up after itself when an exception is raised. ↵Jeremy Kemper2006-11-203-4/+52
| | | | | | Closes #6658. Great tests! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract template_changed_since? from compile_template? so plugins may ↵Jeremy Kemper2006-11-203-5/+48
| | | | | | override its behavior for non-file-based templates. Closes #6651. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update trunk w/ latest Prototype and script.aculo.usThomas Fuchs2006-11-195-15/+161
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* simple_format helper doesn't choke on nil. Closes #6644.Jeremy Kemper2006-11-193-11/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Prototype in trunk to [5550]Thomas Fuchs2006-11-172-0/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reuse named route helper module between Routing reloads to prevent memory leaks.Nicholas Seckar2006-11-172-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView::Base.erb_variable accessor names the buffer variable used to ↵Jeremy Kemper2006-11-175-7/+10
| | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Template errors: fix strange deprecation warnings on e.g. @flash.inspect, ↵Jeremy Kemper2006-11-171-42/+66
| | | | | | remove deprecated @assigns, handle sources without a discernable line number, clean up code. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate standalone components.Jeremy Kemper2006-11-163-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de