David Heinemeier Hansson
|
11c715a53f
|
Added exception handling of missing layouts (closes #5373) [chris@ozmm.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-07-05 02:38:55 +00:00 |
|
Jeremy Kemper
|
d0526ede40
|
r4748@asus: jeremy | 2006-06-29 22:40:35 -0700
Loosen urlencoded content type check.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-30 05:41:03 +00:00 |
|
Nicholas Seckar
|
e494b0a441
|
Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-30 02:36:17 +00:00 |
|
Jeremy Kemper
|
bbc1351344
|
Determine the correct template_root for deeply nested components. Closes #2841.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-21 00:31:43 +00:00 |
|
Rick Olson
|
2bbcff8cf4
|
Fix that routes with *path segments in the recall can generate URLs. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-17 00:25:24 +00:00 |
|
David Heinemeier Hansson
|
36dc94a6a1
|
Added Hash.create_from_xml(string) which will create a hash from a XML string and even typecast if possible [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-16 10:07:13 +00:00 |
|
Rick Olson
|
2f58a467e3
|
add passing test to make sure unhandled requests don't load unnecessary classes. Closed #5408. [nkriege@hotmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-16 03:22:09 +00:00 |
|
Jamis Buck
|
816d67b104
|
Make sure passed routing options are not mutated by routing code. (closes #5314)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-07 16:27:14 +00:00 |
|
Jamis Buck
|
ae7029ddd1
|
Do some path normalization to prevent the possible_controllers list from containing invalid entries
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-07 16:16:37 +00:00 |
|
Jamis Buck
|
4e3543b467
|
Make sure named routes are never generated relative to some containing module
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-06 19:09:56 +00:00 |
|
Jamis Buck
|
e768dc694d
|
Improve parameter expiry handling to fix sticky-id issue. Add a more informative Route#to_s method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-06 17:59:54 +00:00 |
|
Jamis Buck
|
6c04eb2115
|
Make sure changing the controller from foo/bar to bing/bang does not change relative to foo.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-05 15:48:29 +00:00 |
|
Jamis Buck
|
149f5cad85
|
Escape the entire path before trying to recognize it (closes #3671)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-05 15:30:09 +00:00 |
|
Jamis Buck
|
2ffc84d23f
|
Make sure :id and friends are properly unescaped (closes #5275).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-05 14:51:27 +00:00 |
|
Jamis Buck
|
332fcfaf6b
|
Make sure regexp chunks are grouped when the segment has a regexp constraint so that captures are counted correctly (closes #5267)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-05 14:31:38 +00:00 |
|
Jeremy Kemper
|
8cdf9126d3
|
Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). Closes #210.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 06:30:23 +00:00 |
|
David Heinemeier Hansson
|
6dea52c54e
|
Finish custom handling [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 04:38:28 +00:00 |
|
David Heinemeier Hansson
|
5e998d1ea0
|
Make new mime types first class [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 04:29:34 +00:00 |
|
David Heinemeier Hansson
|
984aa7eeb9
|
Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 04:11:56 +00:00 |
|
David Heinemeier Hansson
|
5c30352328
|
Added support for Mime objects in render :content_type option [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 03:39:56 +00:00 |
|
Jeremy Kemper
|
ac66cf1289
|
Add :status option to send_data and send_file. Defaults to '200 OK'. Closes #5243.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-02 00:51:56 +00:00 |
|
David Heinemeier Hansson
|
9e7e89a561
|
Dont keep nothing as a lookup [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-01 23:23:24 +00:00 |
|
Jamis Buck
|
b20c575ac0
|
New routes implementation. Simpler, faster, easier to understand. The published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-01 15:42:08 +00:00 |
|
Jeremy Kemper
|
ce99c87551
|
Cope with missing content type and length headers. Parse parameters from multipart and urlencoded request bodies only. Accept multipart PUT parameters. Closes #5235.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-06-01 00:01:48 +00:00 |
|
David Heinemeier Hansson
|
f9cd92f4ee
|
Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-31 18:52:24 +00:00 |
|
Jeremy Kemper
|
6ce3bf70a2
|
follow_redirect doesn't complain about being redirected to the same controller. Closes #5153.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-22 22:59:56 +00:00 |
|
Marcel Molina
|
7252666b74
|
Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark kevin.clark@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-17 07:25:36 +00:00 |
|
Michael Koziarski
|
d153525c53
|
Fix NoMethodError when parsing params like &&. [Adam Greenfield]. Closes #4955
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-16 20:56:41 +00:00 |
|
Rick Olson
|
04ef7f4be6
|
Small fix in routing to allow dynamic routes (broken after [4242]) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-30 21:06:49 +00:00 |
|
Rick Olson
|
51cd1aec00
|
Fix assert_redirected_to tests according to real-world usage.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-25 03:54:46 +00:00 |
|
Rick Olson
|
526c69b49e
|
Diff compared options with #assert_redirected_to [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-22 15:08:25 +00:00 |
|
Jamis Buck
|
e75d27f405
|
restore some commented lines
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-21 20:15:53 +00:00 |
|
Jamis Buck
|
0a0b5bd722
|
fix to ';' interpretation in route recognition--only follow a route with ';' if the segment in question actually contains a ';'
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-21 17:21:26 +00:00 |
|
Jamis Buck
|
1f80f540a7
|
Add support in routes for semicolon delimited "subpaths", like /books/:id;:action
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-21 15:17:02 +00:00 |
|
Sam Stephenson
|
23585d721d
|
Added :add_headers option to verify which merges a hash of name/value pairs into the response's headers hash if the prerequisites cannot be satisfied
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-08 07:04:21 +00:00 |
|
David Heinemeier Hansson
|
47b74e6e16
|
Added ActionController.filter_parameter_logging that makes it easy to remove passwords, credit card numbers, and other sensitive information from being logged when a request is handled #1897 [jeremye@bsa.ca.gov]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-07 22:26:25 +00:00 |
|
David Heinemeier Hansson
|
42d8548e94
|
Failed test for Marcel to ponder
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-06 03:51:52 +00:00 |
|
Marcel Molina
|
4859b6c09e
|
Honor skipping filters conditionally for only certain actions even when the parent class sets that filter to conditionally be executed only for the same actions. Closes #4522.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-05 04:39:59 +00:00 |
|
David Heinemeier Hansson
|
0c07e08d60
|
ActionView: Allow to register a Template handler with a Symbol (dont kill markaby) (closes #4328) [murphy@cYcnus.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-26 21:50:22 +00:00 |
|
Jamis Buck
|
b0189f3f2f
|
Fix assert_redirected_to so it works with symbols
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-20 18:16:48 +00:00 |
|
Rick Olson
|
891a962a19
|
Added nicer message for assert_redirected_to (closes #4294) [court3nay, Chris McGrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 03:50:14 +00:00 |
|
David Heinemeier Hansson
|
c0ad3b6b68
|
Added test for Accept header for xml_http_request calls in functional tests (closes #4222) [agkr@pobox.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3948 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 21:23:14 +00:00 |
|
David Heinemeier Hansson
|
cc6e8ae57a
|
Removed XML argument style for respond_to, so type.xml(object.to_xml) no longer works -- it wasnt worth the exception
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 21:17:14 +00:00 |
|
David Heinemeier Hansson
|
f22f352ee3
|
Added easy support for testing file uploads with fixture_file_upload (closes #4105) [turnip@turnipspatch.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 20:10:52 +00:00 |
|
Jamis Buck
|
79a82e3a97
|
Make sure xml_simple requests don't blow up if an empty request body is recieved
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3936 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 18:56:19 +00:00 |
|
Jamis Buck
|
b2122159b1
|
fix broken respond_to test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 17:15:22 +00:00 |
|
Nicholas Seckar
|
240213177e
|
Add ability for relative_url_root to be specified via an environment variable RAILS_RELATIVE_URL_ROOT. Closes #4243.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 16:45:40 +00:00 |
|
David Heinemeier Hansson
|
9840dc84f1
|
Allow for respond_to(:html, :js, :xml) (closes #4277) [Caio Chassot]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 06:43:37 +00:00 |
|
Jamis Buck
|
7e46571115
|
Add a test to make sure basic XML entities get unescaped properly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 06:21:04 +00:00 |
|
Jamis Buck
|
4e0028fbab
|
Make Mime::Type.parse consider q values (if any)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 06:15:28 +00:00 |
|