Michael Koziarski
|
810d0ade2b
|
Make error_message_on handle nil objects. [dan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-27 20:46:12 +00:00 |
|
Rick Olson
|
ef1232c478
|
forgot to save CHANGELOG
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-25 09:35:20 +00:00 |
|
Rick Olson
|
64799454a2
|
Fix assert_redirected_to bug where redirecting from a nested to to a top-level controller incorrectly added the current controller's nesting. Closes #6128. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-25 09:34:01 +00:00 |
|
Jeremy Kemper
|
68d2926ab0
|
Singleton resources: POST /singleton => create, GET /singleton/new => new
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-22 03:16:50 +00:00 |
|
Jeremy Kemper
|
a1ca37ec86
|
Use 400 Bad Request status for unrescued ActiveRecord::RecordInvalid exceptions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-22 00:27:39 +00:00 |
|
Jeremy Kemper
|
7f32a85464
|
Fix date helper :include_blank regression. Closes #3811. [mhw]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-20 18:39:41 +00:00 |
|
Jeremy Kemper
|
9a27b29755
|
Silence log_error deprecation warnings from inspecting deprecated instance variables.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-19 23:16:10 +00:00 |
|
Jeremy Kemper
|
e56bd3a121
|
Only cache GET requests with a 200 OK response. Closes #6514, #6743.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-19 20:25:52 +00:00 |
|
Jamis Buck
|
33e48d5f97
|
Add a 'referer' attribute to TestRequest
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-19 17:11:26 +00:00 |
|
Rick Olson
|
e7c2c7982f
|
Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-19 04:41:57 +00:00 |
|
Jeremy Kemper
|
7d49da95a9
|
Another test that the deprecation spout is plugged.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-17 08:29:21 +00:00 |
|
Jeremy Kemper
|
2570f408f0
|
Work around a cross-platform number_to_precision inconsistency in unit tests. Closes #6315. [jesperron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-17 01:00:29 +00:00 |
|
Rick Olson
|
d833645cd8
|
Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-14 20:56:03 +00:00 |
|
Jeremy Kemper
|
2f184c338b
|
Correctly report which filter halted the chain. References #6699.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-12 22:26:37 +00:00 |
|
Nicholas Seckar
|
d1a2449220
|
Fix a bug in Routing where a parameter taken from the path of the current 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
|
2006-12-09 04:42:32 +00:00 |
|
Jeremy Kemper
|
a454dcf012
|
Unrescued ActiveRecord::RecordNotFound responds with 404 instead of 500.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-08 22:19:00 +00:00 |
|
Tobias Lütke
|
2f9d44e50b
|
Improved auto_link to match more valid urls correctly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-07 22:12:48 +00:00 |
|
Rick Olson
|
90179a9ba5
|
added tests checking for nested singleton resources
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-07 16:31:41 +00:00 |
|
Rick Olson
|
c49cd7f18a
|
fix docs for singleton resources
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-07 15:42:01 +00:00 |
|
Rick Olson
|
d0fa4d3e33
|
Add singleton resources. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-07 15:36:08 +00:00 |
|
Jeremy Kemper
|
e44f7fb07a
|
Remove support for json in X-Post-Data-Format header since it's for backward compatibility only. References #4185.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 23:20:24 +00:00 |
|
Jeremy Kemper
|
953214bd23
|
Remove unrelated render :yaml changes. References #4185.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 23:16:25 +00:00 |
|
Jeremy Kemper
|
189ecafa53
|
Update changelog to reflect application/json content type.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 23:10:58 +00:00 |
|
Jeremy Kemper
|
91d99e2f53
|
More thorough JSON tests. Use application/json by default, per rfc4627. References #4185.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 23:06:38 +00:00 |
|
Jeremy Kemper
|
42596543dc
|
respond_to recognizes JSON. render :json => @person.to_json automatically 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
|
2006-12-06 22:27:08 +00:00 |
|
Jeremy Kemper
|
07423bed4b
|
Bob's raining patches: fixes date_helper bugs and usability issues. References #3811.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 19:15:24 +00:00 |
|
David Heinemeier Hansson
|
2794f4164f
|
Dropped the idea of automatically routing :format for the vanilla routes -- 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
|
2006-12-04 00:12:00 +00:00 |
|
David Heinemeier Hansson
|
7611fa6d46
|
Added Request#format to return the format used for the request as a mime 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
|
2006-12-02 23:07:04 +00:00 |
|
David Heinemeier Hansson
|
5410f2cb74
|
Added the option for extension aliases to mime type registration [DHH] 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
|
2006-12-02 22:48:20 +00:00 |
|
David Heinemeier Hansson
|
033a5148eb
|
Premature commit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-30 22:01:58 +00:00 |
|
David Heinemeier Hansson
|
8dca6586de
|
Fixed that script/server running against Mongrel should tail the proper log regardless of the environment [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-30 21:45:31 +00:00 |
|
Jeremy Kemper
|
ec75642e13
|
Merge [5645] from 1.2.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-28 23:41:04 +00:00 |
|
Jeremy Kemper
|
13e1d295d6
|
@response.redirect_url works with 201 Created responses: just return headers['Location'] rather than checking the response status.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-28 23:25:00 +00:00 |
|
Michael Koziarski
|
f6e85e4ec6
|
Merge [5641] to Trunk
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-27 23:56:27 +00:00 |
|
Jeremy Kemper
|
4887e53bf9
|
Use Location rather than location header.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-26 05:35:53 +00:00 |
|
David Heinemeier Hansson
|
093c725732
|
Fix that redirects should set "Location" header, not "location", and remove dead CGI.redirect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-26 05:04:57 +00:00 |
|
Jeremy Kemper
|
ba1db2de63
|
uses_component_template_root looks at caller[0] which turns up the 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
|
2006-11-26 01:24:10 +00:00 |
|
Jeremy Kemper
|
1d564d97c5
|
strip_tags passes through blank args such as nil or "". Closes #6702, references #2229.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-26 01:00:10 +00:00 |
|
David Heinemeier Hansson
|
396b3f2bef
|
Dont set default charset if the response is sending a file. Closes #6689 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-25 19:29:10 +00:00 |
|
Tobias Lütke
|
ad62d461e8
|
Added CSV to Mime::SET so that respond_to csv will work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-24 16:35:00 +00:00 |
|
David Heinemeier Hansson
|
7c7d58937b
|
Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-23 23:52:25 +00:00 |
|
David Heinemeier Hansson
|
efd0bdd9ea
|
* Added GET-masquarading for HEAD, so request.method will return :get even 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
|
2006-11-23 23:24:47 +00:00 |
|
David Heinemeier Hansson
|
f15d52fc4a
|
Added text/csv as a default mime type and included example on how to make your own in config/environment.rb [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-23 17:25:52 +00:00 |
|
Nicholas Seckar
|
d1529a71d1
|
Update Routing to complain when :controller is not specified by a route. Closes #6669.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-22 16:31:00 +00:00 |
|
Thomas Fuchs
|
f5f3cdb1b6
|
Make sure .morph makes it in
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-20 23:45:16 +00:00 |
|
Jeremy Kemper
|
6fc8e143c6
|
Ensure render_to_string cleans up after itself when an exception is raised. Closes #6658. Great tests!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-20 11:03:21 +00:00 |
|
Jeremy Kemper
|
d41f380a2c
|
Extract template_changed_since? from compile_template? so plugins may 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
|
2006-11-20 09:04:26 +00:00 |
|
Thomas Fuchs
|
de6ffba806
|
Update trunk w/ latest Prototype and script.aculo.us
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-19 23:01:32 +00:00 |
|
Jeremy Kemper
|
229ea65374
|
simple_format helper doesn't choke on nil. Closes #6644.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-19 09:57:16 +00:00 |
|
Thomas Fuchs
|
bc76044fde
|
Update Prototype in trunk to [5550]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-17 23:52:54 +00:00 |
|