Rick Olson
|
cd599aad71
|
Action Caching speedup. #8231 [skaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-27 07:38:09 +00:00 |
|
Jeremy Kemper
|
dcaa074abf
|
Routing: respond with 405 Method Not Allowed status when the route path matches but the HTTP method does not. Closes #6953.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 20:07:34 +00:00 |
|
Marcel Molina
|
42ebf559cc
|
Add support for assert_select_rjs with :show and :hide. #7780 [dchelimsky]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 17:29:23 +00:00 |
|
Marcel Molina
|
dc4d23f2d7
|
Make assert_select's failure messages clearer about what failed. #7779 [dchelimsky]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 17:25:19 +00:00 |
|
Jeremy Kemper
|
672941decb
|
Introduce a default respond_to block for custom types. Closes #8174.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6856 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 03:11:34 +00:00 |
|
Jeremy Kemper
|
06f325f478
|
Add multipart request parsing test with bracketed parameter key. References #8449.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-24 23:37:37 +00:00 |
|
Rick Olson
|
4b9e67c5b9
|
catch possible WSOD when trying to render a missing partial. Closes #8454 [Catfish]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-24 16:42:10 +00:00 |
|
Jeremy Kemper
|
4bd3e3aa1b
|
Set RAW_POST_DATA when request parameters are parsed.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-23 19:09:37 +00:00 |
|
Jeremy Kemper
|
b0d01921d8
|
Rewind request body after reading it, if possible. Closes #8438.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-23 05:43:00 +00:00 |
|
Tobias Lütke
|
19fbd84e12
|
Rescuing in around_filters works as expected again [codahale, Stephan Kaes]. Closes #8341
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-22 19:17:43 +00:00 |
|
Jeremy Kemper
|
def8f101b8
|
Strip junk whitespace from [6806].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-22 09:38:54 +00:00 |
|
Jeremy Kemper
|
5a3b4cf0bc
|
Resource namespaces are inherited by their has_many subresources. Closes #8280.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-22 09:37:07 +00:00 |
|
Jeremy Kemper
|
8ba22a690c
|
Fix filtered parameter logging with nil parameter values. Closes #8422.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-21 23:01:17 +00:00 |
|
Jeremy Kemper
|
d1c957d067
|
Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST. Closes #7124.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-21 09:15:16 +00:00 |
|
Jeremy Kemper
|
055ff9f418
|
Fix incorrent content type lookup in request parsing. Closes #8407.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-19 21:34:36 +00:00 |
|
Tobias Lütke
|
1008535905
|
Allow routes to be declared off namespaces
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-19 16:26:44 +00:00 |
|
Jeremy Kemper
|
c597e7d9ac
|
Include location header in args.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 21:23:07 +00:00 |
|
Jeremy Kemper
|
d2ed32d592
|
Parse url-encoded and multipart requests ourselves instead of delegating to CGI.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 06:24:50 +00:00 |
|
Jeremy Kemper
|
f7bb3ddce8
|
Fix render :location => ... test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 05:25:17 +00:00 |
|
David Heinemeier Hansson
|
ebee0a742d
|
Added url_for usage on render :location, which allows for record identification [DHH] (still need to figure out why that test doesnt pass, seems like a test issue)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-17 20:48:47 +00:00 |
|
Tobias Lütke
|
04823ff48f
|
Allow nested namespaces in routing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-17 01:27:54 +00:00 |
|
Jeremy Kemper
|
73fbf7771b
|
Add multipart and url-encoded form mime types.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 23:57:16 +00:00 |
|
Jeremy Kemper
|
f73e1c2ec0
|
Move request parameter parsing from CGI to AbstractRequest.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 22:10:03 +00:00 |
|
Jeremy Kemper
|
32d03af341
|
Introduce the request.body stream. Lazy-read to parse parameters rather than always setting RAW_POST_DATA. Reduces the memory footprint of large binary PUT requests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 21:36:21 +00:00 |
|
Rick Olson
|
ebf9b3737b
|
Add some performance enhancements to ActionView.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 06:36:34 +00:00 |
|
Rick Olson
|
fa3618d375
|
add test case for js.erb partials on *.js formatted requests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 03:15:36 +00:00 |
|
Rick Olson
|
80074cb4de
|
Assume that rendered partials go by the HTML format by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 03:13:32 +00:00 |
|
Jeremy Kemper
|
f8273e4309
|
Shine some sunlight on the CGI extensions. Remove unused CGI#session.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 00:08:05 +00:00 |
|
David Heinemeier Hansson
|
6e7b593992
|
Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-14 17:30:35 +00:00 |
|
Jeremy Kemper
|
50253edec9
|
Rationalize route path escaping according to RFC 2396 section 3.3. Closes #7544, #8307.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-14 11:14:30 +00:00 |
|
David Heinemeier Hansson
|
c769ad8533
|
Removed deprecated parameters_for_method_reference concept (legacy from before named routes) [DHH] Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-12 21:12:31 +00:00 |
|
Nicholas Seckar
|
2ca6f57f85
|
Add broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-12 04:46:17 +00:00 |
|
Nicholas Seckar
|
a5fe13e871
|
Add ActionController::Routing::Helpers, a module to contain common URL helpers such as polymorphic_url.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-12 04:18:46 +00:00 |
|
David Heinemeier Hansson
|
20eb59ad8a
|
Included the HttpAuthentication plugin as part of core (ActionController::HttpAuthentication::Basic) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-08 05:48:18 +00:00 |
|
Marcel Molina
|
b7565075c3
|
More documentations for typos in routes. Closes #8228 [pam]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 04:26:49 +00:00 |
|
Marcel Molina
|
dac6aae7f8
|
Sweep flash when filter chain is halted. Closes #6175. [Caio Chassot <lists@v2studio.com>]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 04:17:01 +00:00 |
|
Michael Koziarski
|
67ca9224d7
|
Bug fix for the filter implementation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 04:10:26 +00:00 |
|
Rick Olson
|
0778464168
|
Replace the current block/continuation filter chain handling by an implementation based on a simple loop. #8226 [Stefan Kaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-02 13:22:38 +00:00 |
|
Nicholas Seckar
|
5a3bb880db
|
Update UrlWriter to accept :anchor parameter. Closes #6771.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-02 04:40:33 +00:00 |
|
David Heinemeier Hansson
|
da257eb81b
|
Added the first part of Simply Helpful to core. The rest is pending a clean integartion of polymorphic urls [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-30 01:17:56 +00:00 |
|
David Heinemeier Hansson
|
8326a15784
|
Added map.namespace to deal with the common situation of admin sections and the like [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-27 16:58:36 +00:00 |
|
David Heinemeier Hansson
|
f985bfd8f8
|
Added test case for overwritting the name prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-27 05:10:23 +00:00 |
|
David Heinemeier Hansson
|
8bf1f25254
|
Name prefix should nest like path prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-27 05:07:56 +00:00 |
|
David Heinemeier Hansson
|
0adf4a97c1
|
Actually make the name_prefix work like the previous checkin said it would
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-27 05:06:38 +00:00 |
|
David Heinemeier Hansson
|
63aea3ffa9
|
Added :has_many and :has_one for declaring plural and singular resources beneath the current [DHH] Added :name_prefix as standard for nested resources [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 23:11:31 +00:00 |
|
David Heinemeier Hansson
|
6a85955642
|
Added parsing of file type in Hash.xml_in so you can easily do file uploads with base64 from an API [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-25 17:25:44 +00:00 |
|
David Heinemeier Hansson
|
82d70d1d16
|
Added that render :xml will try to call to_xml if it can [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-24 18:29:37 +00:00 |
|
David Heinemeier Hansson
|
5208d8d817
|
Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-24 17:52:03 +00:00 |
|
Jeremy Kemper
|
38d574c6a3
|
Expect string response body.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-24 04:12:11 +00:00 |
|
Rick Olson
|
6351e0a541
|
The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-12 20:25:32 +00:00 |
|
Rick Olson
|
f5b8fc0335
|
Allow layouts with extension of .html.erb. Closes #8032 [Josh Knowles]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-12 17:11:48 +00:00 |
|
Tobias Lütke
|
01c35c8175
|
Removed ill faded xml_node class from codebase. Use XmlSimple instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-09 15:33:38 +00:00 |
|
Rick Olson
|
e0f8342676
|
Change default respond_to templates for xml and rjs formats. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-08 17:16:36 +00:00 |
|
Rick Olson
|
da6f5a1cb4
|
Change ActionView template defaults. Look for templates using the request format first, such as show.html.erb or show.xml.builder, before looking for the old defaults like show.erb or show.builder [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-02 00:02:11 +00:00 |
|
David Heinemeier Hansson
|
0cac2806a6
|
Dropped the use of ; as a separator of non-crud actions on resources and went back to the vanilla slash. It was a neat idea, but lots of the non-crud actions turned out not to be RPC (as the ; was primarily intended to discourage), but legitimate sub-resources, like /parties/recent, which didn't deserve the uglification of /parties;recent. Further more, the semicolon caused issues with caching and HTTP authentication in Safari. Just Not Worth It [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-28 21:55:40 +00:00 |
|
Tobias Lütke
|
df3ee41126
|
Improved the handling of broken accept headers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-28 16:42:21 +00:00 |
|
Jamis Buck
|
777deb9d15
|
Make sure the expiry hash is built by comparing the to_param-ized values of each hash
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-26 19:02:19 +00:00 |
|
Rick Olson
|
c6d7260841
|
Allow configuration of the default action cache path for #caches_action calls. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-22 10:12:34 +00:00 |
|
Jeremy Kemper
|
c593721e7c
|
Revert [6430] since the test is faulty. References #7837, closes #7842.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 13:55:36 +00:00 |
|
Jeremy Kemper
|
f596dda0bb
|
Undeprecate redirect_to with Hash argument and additional url_for parameters. Closes #7837.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 05:21:19 +00:00 |
|
Jeremy Kemper
|
bbcfb9b625
|
Cookie session store: ensure that new sessions doesn't reuse data from a deleted session in the same request.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-14 11:33:10 +00:00 |
|
Jeremy Kemper
|
1f02271048
|
Deprecation: verification with :redirect_to => :named_route shouldn't be deprecated. Closes #7525.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-14 01:38:41 +00:00 |
|
Jeremy Kemper
|
5219aa9008
|
Cookie session store: raise ArgumentError when :session_key is blank.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 20:44:16 +00:00 |
|
Jeremy Kemper
|
f770165cc2
|
Deprecation: remove deprecated url_for(:symbol, *args) and redirect_to(:symbol, *args) controller methods. Use named routes instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:44:18 +00:00 |
|
Jeremy Kemper
|
1def3f0073
|
Deprecation: remove deprecated update_element_function, start_form_tag, and end_form_tag. Use RJS and form_tag instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:24:10 +00:00 |
|
Jeremy Kemper
|
da87839c89
|
Deprecation: remove toplevel components directory and uses_component_template_root.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 04:46:12 +00:00 |
|
Jeremy Kemper
|
0631400b4a
|
Deprecation: remove deprecated request methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 04:32:45 +00:00 |
|
Jeremy Kemper
|
cb6d94cc57
|
Deprecation: remove deprecated redirect methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 03:58:22 +00:00 |
|
Jeremy Kemper
|
83c8db9818
|
Deprecation: remove deprecated instance variables.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 03:49:52 +00:00 |
|
Jeremy Kemper
|
8e01143854
|
Adjust test for unsorted Array#to_query. References #7756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-11 13:29:40 +00:00 |
|
Jeremy Kemper
|
e17df19b86
|
Allow array and hash query parameters. Array route parameters are converted/to/a/path as before. References #6765, #7462. Closes #7047.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 07:47:23 +00:00 |
|
Tobias Lütke
|
e52c28a425
|
Ignore odd charset declaration in CONTENT_TYPE header which would throw off mime type lookup.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-05 18:24:17 +00:00 |
|
David Heinemeier Hansson
|
4568c1d744
|
Added URL escaping of user and password when used through the UrlWriter
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 20:10:51 +00:00 |
|
Jeremy Kemper
|
8f94cc5cb4
|
Extract dynamic scaffolding into a plugin. Closes #7700.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 08:35:52 +00:00 |
|
David Heinemeier Hansson
|
bf6d4cede7
|
Added user/password options for url_for to add http authentication in a URL [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 22:19:54 +00:00 |
|
Jeremy Kemper
|
f254831e83
|
Cookie store: use OpenSSL::HMAC instead of basic hash. Introduce :secret block and :digest option.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 13:54:54 +00:00 |
|
Jeremy Kemper
|
a0563bf7b0
|
Cookie store: test that >4K raises CookieOverflow and that unverifiable cookies are automatically deleted.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 08:18:30 +00:00 |
|
Jeremy Kemper
|
df7ca38d7d
|
session_enabled? works with session :off. Closes #6680.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 06:36:25 +00:00 |
|
David Heinemeier Hansson
|
b8cd80550f
|
Added :port and :host handling to UrlRewriter (which unified url_for usage, regardless of whether it's called in view or controller) #7616 [alancfrancis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:22:09 +00:00 |
|
David Heinemeier Hansson
|
9b46f69381
|
Allow send_file/send_data to use a registered mime type as the :type parameter #7620 [jonathan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:16:58 +00:00 |
|
David Heinemeier Hansson
|
784298008b
|
Allow routing requirements on map.resource(s) (closes #7633) [quixoten]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:13:19 +00:00 |
|
David Heinemeier Hansson
|
b203b9b55b
|
Fixed broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:11:18 +00:00 |
|
David Heinemeier Hansson
|
793c9ff68d
|
Moved perform_caching test set up into test's setup to fix a dependence fragility (closes #7640)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 19:53:14 +00:00 |
|
Jeremy Kemper
|
781985f7f2
|
Cookie session store: empty and unchanged sessions don't write a cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 16:35:24 +00:00 |
|
David Heinemeier Hansson
|
f95dfff966
|
Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-24 20:31:34 +00:00 |
|
Jeremy Kemper
|
236fe10fe9
|
Integration tests: introduce methods for other HTTP methods. Closes #6353.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 09:28:10 +00:00 |
|
Jeremy Kemper
|
c8f7860d50
|
CGI escape the session cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 01:17:28 +00:00 |
|
Jeremy Kemper
|
de0a0d700e
|
Routing: better support for escaped values in route segments. Closes #7544.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 10:05:07 +00:00 |
|
Jeremy Kemper
|
f29857690f
|
Introduce a cookie-based session store as the Rails default. Sessions typically contain at most a user_id and flash message; both fit within the 4K cookie size limit. A secure hash is included with the cookie to ensure data integrity (a user cannot alter his user_id without knowing the secret key included in the hash). If you have more than 4K of session data or don't want your data to be visible to the user, pick another session store. Cookie-based sessions are dramatically faster than the alternatives.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 09:17:38 +00:00 |
|
David Heinemeier Hansson
|
e105653066
|
Added .erb and .builder as preferred aliases to the now deprecated .rhtml and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 22:09:12 +00:00 |
|
David Heinemeier Hansson
|
9e4c8b8858
|
Fix tests depending too deep
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:25:01 +00:00 |
|
David Heinemeier Hansson
|
94fa0ed053
|
Its ETag not Etag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:10:19 +00:00 |
|
David Heinemeier Hansson
|
7ec0204ecd
|
Move etagging down to response, so renders with layouts dont screw it up [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 00:27:19 +00:00 |
|
David Heinemeier Hansson
|
aad7fbde68
|
Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 23:54:20 +00:00 |
|
David Heinemeier Hansson
|
109d4ac954
|
Allow people to set their own etags, if they want more control over the process (closes #7580) []
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 16:32:05 +00:00 |
|
Jeremy Kemper
|
4fd84aae90
|
Etagging ignores appended and block responses.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 00:47:18 +00:00 |
|
David Heinemeier Hansson
|
2e55095f6f
|
Added that rendering will automatically insert the etag header on 200 OK responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-17 18:16:44 +00:00 |
|
Rick Olson
|
e312cc3215
|
remove Mime::PLAIN from tests so its not confused with the default Mime::TEXT mime type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-15 16:40:38 +00:00 |
|
Rick Olson
|
5d54b8f07c
|
Add Mime::Type convenience methods to check the current mime type. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-15 16:25:46 +00:00 |
|
Jeremy Kemper
|
eb2dad2fe5
|
Revert [6086] and [6087] since they caused a major regression with functional tests in 1.2.2. References #7372.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-10 03:55:12 +00:00 |
|
Thomas Fuchs
|
c9108f3e39
|
Add a :url_based_filename => true option to ActionController::Streaming::send_file, which allows URL-based filenames. [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-09 11:25:37 +00:00 |
|
Rick Olson
|
92195e68a0
|
Fix issue with deprecation messing up #template_root= usage. Add #prepend_view_path and #append_view_path to allow modification of a copy of the
superclass' view_paths. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 22:27:45 +00:00 |
|
Rick Olson
|
69b0e5c44a
|
Allow Controllers to have multiple view_paths instead of a single template_root. Closes #2754 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 20:47:05 +00:00 |
|
David Heinemeier Hansson
|
8f614a80e7
|
Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 20:44:45 +00:00 |
|
Rick Olson
|
19fbb31464
|
Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 20:04:40 +00:00 |
|
Rick Olson
|
7a49cb058f
|
fix form_for example in ActionController::Resources documentation. Closes #7362 [gnarg], Added enhanced docs to routing assertions. Closes #7359 [Rob Sanheim], improve error message for Routing for named routes. Closes #7346 [Rob Sanheim]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 19:07:08 +00:00 |
|
Jeremy Kemper
|
09c708981c
|
TestSession supports indifferent access so session['foo'] == session[:foo] in your tests. Closes #7372.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 18:24:46 +00:00 |
|
Nicholas Seckar
|
2cc9c8135c
|
Allow Routes to generate all urls for a set of options by specifying :generate_all => true. References #1739.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 17:29:51 +00:00 |
|
Nicholas Seckar
|
17a9405b58
|
Change the query parser to map empty GET params to "" rather than nil. Closes #5694.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 17:00:17 +00:00 |
|
Jeremy Kemper
|
799f556fe1
|
Resource member routes require :id, eliminating the ambiguous overlap with collection routes. Closes #7229.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 08:20:04 +00:00 |
|
Jeremy Kemper
|
0eacdcf9a3
|
Use a consistent load path to avoid double requires. Fix some scattered Ruby warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 07:16:55 +00:00 |
|
Jeremy Kemper
|
4ac332fa9a
|
Fix Test::Unit::TestCase#clean_backtrace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 07:10:35 +00:00 |
|
Jeremy Kemper
|
dde527440a
|
Remove deprecated assertions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 07:00:43 +00:00 |
|
Nicholas Seckar
|
35ec1c928f
|
Fix doubly appearing parameters due to string and symbol mixups. Closes #2551.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 05:29:32 +00:00 |
|
Jeremy Kemper
|
7fce529b2a
|
Mocha 0.4 mixes in more public instance methods, confusing controller identification of action methods. Closes #7347.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 12:04:08 +00:00 |
|
Rick Olson
|
fcd73821c2
|
Modernize cookie testing code, and increase coverage (Heckle++) #7101 [Kevin Clark]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 06:51:59 +00:00 |
|
Rick Olson
|
d2205ea5e9
|
Improve Test Coverage for ActionController::Routing::Route#matches_controller_and_action? (Heckle++) #7115 [Kevin Clark]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 06:49:43 +00:00 |
|
Rick Olson
|
582c028b14
|
Heckling ActionController::Resources::Resource revealed that set_prefixes didn't break when :name_prefix was munged. #7081 [Kevin Clark]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 06:46:02 +00:00 |
|
Jeremy Kemper
|
d38417fc02
|
RecordInvalid, RecordNotSaved => 422 Unprocessable Entity, StaleObjectError => 409 Conflict. References #7097.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 00:43:53 +00:00 |
|
Jeremy Kemper
|
55efae2720
|
Allow exempt_from_layout :rhtml. References #6742, closes #7026.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-14 13:57:44 +00:00 |
|
Jeremy Kemper
|
a6e12c0c21
|
Wrap and skip tests using mocha.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-14 12:49:55 +00:00 |
|
Jeremy Kemper
|
ba814a9033
|
Use mocha for rescue tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5916 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-13 07:14:46 +00:00 |
|
Rick Olson
|
dd6826eba3
|
Recognize the .txt extension as Mime::TEXT [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 20:54:04 +00:00 |
|
Jeremy Kemper
|
88e02f6e56
|
Failing test for exempt_from_layout :rhtml. References #6742.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 10:31:24 +00:00 |
|
Jeremy Kemper
|
41198ad3ad
|
Fix parsing of array[] CGI parameters so extra empty values aren't included. Closes #6252.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 09:10:58 +00:00 |
|
Jeremy Kemper
|
fe736a54f9
|
Set request.env['REQUEST_URI'] when absent.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 07:01:39 +00:00 |
|
Jeremy Kemper
|
89b472aa0c
|
Test proving render_to_string result passed to partial works. Closes #2541. [smeade]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 06:10:06 +00:00 |
|
Rick Olson
|
0727af86fc
|
Fix bug where nested resources ignore a parent singleton parent's path prefix. Closes #6940 [Dan Kubb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-08 01:07:48 +00:00 |
|
Jeremy Kemper
|
f9f84d9f6d
|
Routing uses URI escaping for path components and CGI escaping for query parameters.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-28 21:04:44 +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
|
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 |
|
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 |
|
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 |
|
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
|
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
|
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
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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
|
0100a79913
|
Deprecate standalone components.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-16 06:40:37 +00:00 |
|
Jeremy Kemper
|
c9e0002d36
|
assert_select_rjs :remove
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-15 12:45:52 +00:00 |
|
Jeremy Kemper
|
56e3e2fde5
|
Always clear model associations from session. Closes #4795.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 18:59:01 +00:00 |
|
Jeremy Kemper
|
f0753992ab
|
test controller rescues
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 02:03:50 +00:00 |
|
Jeremy Kemper
|
f8486e8f10
|
silence const_set warning
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 01:17:10 +00:00 |
|
Jeremy Kemper
|
afe49dcf5b
|
update_element_function is deprecated
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 00:53:20 +00:00 |
|
Jeremy Kemper
|
0342393b30
|
Multipart form values may have a content type without being treated as uploaded files if they do not provide a filename. Closes #6401.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-09 18:52:19 +00:00 |
|
Jeremy Kemper
|
57313c54bf
|
assert_response supports symbolic status codes. Closes #6569.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-07 21:45:10 +00:00 |
|
Rick Olson
|
cfb7dea783
|
clean up failing routing tests from missing :only_path option [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-22 23:48:52 +00:00 |
|
Jeremy Kemper
|
a0f74092a8
|
test deprecated instance variables using to_s instead of inspect which touches other ivars
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-18 00:04:47 +00:00 |
|
Nicholas Seckar
|
03b383853d
|
Fix routing to correctly determine when generation fails. Closes #6300.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-16 19:52:21 +00:00 |
|
Jamis Buck
|
b5ec0fe313
|
Fix broken assert_generates when extra keys are being checked.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-16 14:32:11 +00:00 |
|
Jamis Buck
|
39963b4b9d
|
remove an obsolete #dup call. avoid double negatives, to make the code easier to understand and explain
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-15 03:11:08 +00:00 |
|
Jamis Buck
|
ef6921628d
|
make sure filters in subclasses with :only or :except conditions are treated like skip_filter calls
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-14 01:54:42 +00:00 |
|
Marcel Molina
|
065908a4c5
|
Make page caching respect the format of the resource that is being requested even if the current route is the default route so that, e.g. posts.rss is not transformed by url_for to '/' and subsequently cached as '/index.html' when it should be cached as '/posts.rss'.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-12 23:29:04 +00:00 |
|
Jamis Buck
|
02dc646d55
|
Fix relative URL root matching problems
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 19:14:11 +00:00 |
|
Jeremy Kemper
|
eaae0399ad
|
r5540@ks: jeremy | 2006-10-08 23:05:30 -0700
#5949
r5541@ks: jeremy | 2006-10-08 23:07:08 -0700
Fix filter skipping in controller subclasses.
r5557@ks: jeremy | 2006-10-08 23:11:24 -0700
Update changelog. Closes #5949, references #6297, references #6299.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 06:11:40 +00:00 |
|
Jeremy Kemper
|
a307b8c7dc
|
render_text may optionally append to the response body. render_javascript appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 01:26:35 +00:00 |
|
Nicholas Seckar
|
bc85e6ac4c
|
Rename test assertion to prevent shadowing. Closes #6306.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 01:20:36 +00:00 |
|
Jeremy Kemper
|
5d1edc55a8
|
one render per test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 01:14:38 +00:00 |
|
David Heinemeier Hansson
|
f9650a23f0
|
Fixed that caches_action breaks with file extensions (closes #6257) [Catfish]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 00:56:13 +00:00 |
|
David Heinemeier Hansson
|
3c6b7a2191
|
Fixed that assert_select selects the wrong tag by its contents (closes #6332) [jgarber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 00:20:31 +00:00 |
|
Jeremy Kemper
|
7ea86773a9
|
r5515@ks: jeremy | 2006-10-08 13:24:42 -0700
#6281
r5516@ks: jeremy | 2006-10-08 13:29:49 -0700
respond_to :html doesn't assume .rhtml. Closes #6281.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-08 20:30:24 +00:00 |
|
Jeremy Kemper
|
4f3bf6cb23
|
Deprecate @cookies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-29 08:04:39 +00:00 |
|
Jeremy Kemper
|
643d17ce9e
|
assert_select_rjs decodes escaped unicode chars since the Javascript generators encode them. Closes #6240.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-29 07:39:31 +00:00 |
|
Jeremy Kemper
|
d7674637f9
|
Deprecation: @request will be removed after 1.2. Use the request method instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-29 07:34:02 +00:00 |
|
Jamis Buck
|
c0eccc9aef
|
modify head so that you can specify a bare status code as the first parameter
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-28 19:32:40 +00:00 |
|
Jamis Buck
|
b2ede64a89
|
Add ActionController::Base#head for rendering empty responses. Add support for symbolic status codes, as well as for having raw integer statuses expand with their default messages.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-28 19:13:55 +00:00 |
|
Rick Olson
|
e537de00d8
|
Fix bug that kept any before_filter except the first one from being able to halt the before_filter chain. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-27 04:55:44 +00:00 |
|
Jamis Buck
|
6a8dcc8a5b
|
Make sure map.resources(:things, :new => { :new => :any }) correctly sets /things/new to be accessible by any method rather than creating another resource at /things/new;new
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-26 22:45:09 +00:00 |
|
Nicholas Seckar
|
8d809e724a
|
Clear the cache of possible controllers whenever Routes are reloaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-23 17:25:06 +00:00 |
|
Jeremy Kemper
|
a0c677c8e6
|
Filters overhaul including meantime filter support for around filters. Closes #5949.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-22 03:41:03 +00:00 |
|
Sam Stephenson
|
236cf90bf1
|
Update RJS render tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-20 20:14:12 +00:00 |
|
Nicholas Seckar
|
4ae3db8366
|
Fix routing to respect user provided requirements and defaults when assigning default routing options (such as :action => 'index'). Closes #5950.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-20 17:45:03 +00:00 |
|
Rick Olson
|
ec030534b1
|
test default content type for implicit rjs template render
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-18 16:32:41 +00:00 |
|
David Heinemeier Hansson
|
caa8a00520
|
Added that respond_to blocks will automatically set the content type to be the same as is requested [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-17 18:10:25 +00:00 |
|
David Heinemeier Hansson
|
2caf4d5a93
|
Added proper getters and setters for content type and charset [DHH] Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-17 16:20:32 +00:00 |
|
Jeremy Kemper
|
35ffc1afbe
|
Declare file extensions exempt from layouts. Closes #6219.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-16 01:31:17 +00:00 |
|
Jeremy Kemper
|
3d3ba58dbb
|
remove implicit primary actions - more pain than gain. test collection actions for other http methods. strip whitespace.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-14 19:53:04 +00:00 |
|
Rick Olson
|
6dbac689a8
|
Add chained replace/update support for assert_select_rjs [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-14 17:50:46 +00:00 |
|
David Heinemeier Hansson
|
73a8d7393f
|
Make sure that formatted routes for all verbs are created. Still needs to resolve two failing tests after this refactoring [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-13 04:04:19 +00:00 |
|
Jeremy Kemper
|
7661c2b50a
|
Skip params with empty names, such as the &=Save query string from <input type=submit/>. Closes #2569.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-12 20:57:09 +00:00 |
|
Jamis Buck
|
3f0952d9df
|
Fix assert_tag so that :content => "foo" does not match substrings, but only exact strings. Use :content => /foo/ to match substrings. closes #2799
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-10 02:51:38 +00:00 |
|
Jamis Buck
|
5bf41ed8bc
|
Add test case to test attribute matching by assert_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-09 22:05:21 +00:00 |
|
Nicholas Seckar
|
00685ad8fd
|
Update UrlWriter to support :only_path.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-06 22:21:36 +00:00 |
|
Rick Olson
|
5360e47431
|
added passing test for using partials with an xml builder
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-06 03:51:45 +00:00 |
|
David Heinemeier Hansson
|
83313fccc0
|
Backed out of locals hash as it caused trouble with Builder, see ticket for more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-06 03:38:11 +00:00 |
|
David Heinemeier Hansson
|
c2054c4289
|
Superseeded by action_caching_test (closes #5173)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 20:39:50 +00:00 |
|
David Heinemeier Hansson
|
40762a4873
|
Fixed default routing NoMethodError downcase for nil when default controller provided (closes #5400) [kajism@yahoo.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 20:09:15 +00:00 |
|
David Heinemeier Hansson
|
df70e28e03
|
Added locals hash to partials, which makes for convenient access of some times available/some times not variables (closes #5491) [wbruce@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 20:01:52 +00:00 |
|
Jeremy Kemper
|
da8d7a7011
|
deprecated render assertions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:51:48 +00:00 |
|
Jeremy Kemper
|
e04a6e8155
|
deprecated assertions tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:47:51 +00:00 |
|
David Heinemeier Hansson
|
653bfe9600
|
Dont raise deprecation warning on render :action => "stuff"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:24:08 +00:00 |
|
Jeremy Kemper
|
ea831469a9
|
new render deprecations test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:09:18 +00:00 |
|
Jeremy Kemper
|
96c45a8118
|
Don't use deprecated render API. Cosmetics.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:07:26 +00:00 |
|
Jeremy Kemper
|
7cbb4ac44f
|
deprecated keep_flash test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:06:10 +00:00 |
|
Jeremy Kemper
|
3158730411
|
redirect deprecation tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 05:05:11 +00:00 |
|
Jeremy Kemper
|
d4a3eff89d
|
no more render_to_string deprecation warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 04:59:05 +00:00 |
|
Jeremy Kemper
|
7818cf1123
|
deprecated render tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 04:05:38 +00:00 |
|
Jeremy Kemper
|
9b424f04ca
|
test_test deprecation and cosmetics
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 04:03:57 +00:00 |
|
Jeremy Kemper
|
25ea18aa15
|
Fix deprecation warnings in verification tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 03:17:32 +00:00 |
|
Jeremy Kemper
|
71dbef6d27
|
Integration tests: thoroughly test ActionController::Integration::Session. Closes #6022.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 23:34:57 +00:00 |
|
Jeremy Kemper
|
af61b9cdae
|
action
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 23:17:13 +00:00 |
|
David Heinemeier Hansson
|
5048aa9831
|
Deprecated old render parameter calls
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 23:02:56 +00:00 |
|
David Heinemeier Hansson
|
268c1dee8f
|
Require action mailer more gracefully
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 22:43:24 +00:00 |
|
David Heinemeier Hansson
|
4bd444c1fe
|
More deprecation fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 22:35:31 +00:00 |
|
David Heinemeier Hansson
|
f12fdc50a6
|
Better compartmentalizing of assertions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 20:18:06 +00:00 |
|
David Heinemeier Hansson
|
3142502964
|
Added assert_select* for CSS selector-based testing (deprecates assert_tag) #5936 [assaf.arkin@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4929 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 19:54:21 +00:00 |
|
Jeremy Kemper
|
db9be58719
|
Cleanup assert_tag :children counting. Closes #2181.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-03 16:40:01 +00:00 |
|
Rick Olson
|
2b45e2d370
|
Add routing tests to assert that RoutingError is raised when conditions aren't met. Closes #6016 [Nathan Witmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-02 20:41:40 +00:00 |
|
Nicholas Seckar
|
d34a346d9d
|
Switch to using FormEncodedPairParser for parsing request parameters.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-30 05:50:02 +00:00 |
|
Tobias Lütke
|
ff063d700d
|
respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority.
Custom mime types require a block and throw proper error now.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-30 00:34:36 +00:00 |
|
David Heinemeier Hansson
|
d164d09649
|
FormEncodedStringParser needs a tad more work before it can handle POST data (like file handling), so were backing out for a bit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-28 14:05:05 +00:00 |
|
Jeremy Kemper
|
96c6ca369a
|
Deprecation: test deprecated instance vars in partials.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-26 05:58:16 +00:00 |
|
David Heinemeier Hansson
|
7b34d0f8c5
|
Actually, indifferent access mattered in the bowels (hashes hidden in arrays)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-26 03:09:32 +00:00 |
|
David Heinemeier Hansson
|
a78519071c
|
Result is made indifferent on the way out
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-26 02:58:55 +00:00 |
|
David Heinemeier Hansson
|
04fda65306
|
Changed the POST parameter processing to use the new QueryStringParser and make the result a indifferent hash [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4821 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-26 02:49:09 +00:00 |
|
David Heinemeier Hansson
|
9e054fdf41
|
More tests for array/hashing in parameters, one failing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-26 01:57:44 +00:00 |
|
Nicholas Seckar
|
3b1972a896
|
Add UrlWriter to allow writing urls from Mailers and scripts.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-24 06:15:01 +00:00 |
|
Nicholas Seckar
|
caf546b675
|
Add test case from ticket #4090
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-22 07:18:24 +00:00 |
|
Nicholas Seckar
|
7678d123a7
|
Relax Routing's anchor pattern warning; it was preventing use of [^/] inside restrictions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-15 02:04:11 +00:00 |
|
Nicholas Seckar
|
5baf7462c7
|
Add controller_paths variable to Routing; Assign Routing.controller_paths from initializer; fix script/about and rails info controller.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-15 01:28:06 +00:00 |
|
Rick Olson
|
8c4b599b7c
|
Fix assert_redirected_to issue with named routes for module controllers. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-13 18:31:58 +00:00 |
|
Nicholas Seckar
|
84bacf99d6
|
Invoke method_missing directly for hidden actions. Closes #3030.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-13 04:15:22 +00:00 |
|
Jeremy Kemper
|
c3cdd3b659
|
Deprecation: check whether instance variables have been monkeyed with before assigning them to deprecation proxies. Raises a RuntimeError if so.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-07 21:58:31 +00:00 |
|
Jeremy Kemper
|
c40b1a4a67
|
Deprecate direct usage of @params. Update ActionView::Base for instance var deprecation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-07 12:40:14 +00:00 |
|
Jeremy Kemper
|
2399a223c3
|
Deprecation! @session and @flash will be removed after 1.2. Use the session and flash methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-07 06:11:56 +00:00 |
|
Nicholas Seckar
|
127ee8c8f8
|
Make Routing noisy when an anchor regexp is assigned to a segment. Closes #5674
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-05 22:12:50 +00:00 |
|
David Heinemeier Hansson
|
5130fc84c6
|
Remove duplicate routes from mapped resources (closes #5712) [eigentone@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-05 20:46:49 +00:00 |
|
Jeremy Kemper
|
12ab93b72b
|
Make controller_path available as an instance method. Closes #5724.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-05 01:56:58 +00:00 |
|
David Heinemeier Hansson
|
2d6ca64c45
|
Make us pass to ease RESTful children posts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-04 00:45:09 +00:00 |
|
David Heinemeier Hansson
|
6e842f216c
|
Make us pass to ease RESTful children posts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-04 00:15:09 +00:00 |
|
Marcel Molina
|
d17bd6a043
|
Make action caching aware of different formats for the same action so that, e.g. foo.xml is cached separately from foo.html. Implicitly set content type when reading in cached content with mime revealing extensions so the entire onous isn't on the webserver. PDI MORE CACHING TESTS [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-03 23:59:38 +00:00 |
|
Rick Olson
|
58b996f9b0
|
Restrict Request Method hacking with ?_method to POST requests. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-01 03:02:31 +00:00 |
|
Jeremy Kemper
|
c9417dcef3
|
Nested resource testing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-01 01:23:06 +00:00 |
|
Jeremy Kemper
|
a247d72139
|
Nesting map.resources
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-01 00:29:02 +00:00 |
|
Rick Olson
|
78e37f45c6
|
Fix bug when passing multiple options to SimplyRestful, like :new => { :preview => :get, :draft => :get }. [Rick Olson, Josh Susser, Lars Pind]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-07-31 21:57:59 +00:00 |
|