Jeremy Kemper
f801cd7959
Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. Closes #3586 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 05:35:08 +00:00
Jeremy Kemper
eede40bcf0
Reset @html_document between requests so assert_tag works. Closes #4810 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 04:58:55 +00:00
Jeremy Kemper
e5cbb849f9
Update render :partial documentation. Closes #5646 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 01:50:58 +00:00
Jeremy Kemper
c396c5ab31
Integration tests behave well with render_component. Closes #4632 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 00:18:42 +00:00
Jeremy Kemper
cf965cda5c
Clarify partial filename constraints. Closes #1161 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-07 22:53:46 +00:00
Jeremy Kemper
f833a78049
text_field_with_auto_complete stylesheet uses <style type="text/css"> instead of bare <style>. Closes #5610 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 23:24:14 +00:00
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
David Heinemeier Hansson
40f50fd7e5
Doc fix ( closes #5429 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 02:18:34 +00:00
David Heinemeier Hansson
ead99f3f2e
Fixed that real files and symlinks should be treated the same when compiling templates ( closes #5438 ) [zachary@panandscan.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 02:17:25 +00:00
David Heinemeier Hansson
f780bb8f58
Doc fix ( closes #5576 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 01:16:41 +00:00
David Heinemeier Hansson
28ef328baa
Fixed that the flash should be reset when reset_session is called ( closes #5584 ) [shugo@ruby-lang.org]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 01:14:53 +00:00
David Heinemeier Hansson
f384622a20
Doc fixes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 01:06:51 +00:00
David Heinemeier Hansson
532627452d
Added special case for "1 Byte" in NumberHelper#number_to_human_size ( closes #5593 ) [murpyh@rubychan.de]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 01:04:32 +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
David Heinemeier Hansson
bdac94e990
Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-30 05:19:15 +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
546c04c6b4
Missing method_key.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-30 01:56:29 +00:00
Jeremy Kemper
9444206dd5
Retain symbol method key and assign_method_name.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 21:45:12 +00:00
Jeremy Kemper
ec43212206
r4732@asus: jeremy | 2006-06-29 13:51:32 -0700
...
Chop RAILS_ROOT from file path for readability. Preserve non-alphanumeric characters for uniqueness.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 20:52:00 +00:00
Jeremy Kemper
f3aa7c1e64
r4730@asus: jeremy | 2006-06-29 13:13:38 -0700
...
Avoid naming collision among compiled view methods. Back out AM workaround. References #5520 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 20:14:33 +00:00
Marcel Molina
c02d1f7d9b
Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [mislav@nippur.irb.hr]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-28 13:51:25 +00:00
Rick Olson
a28817948d
documentation fixes for ActionController::Verification::ClassMethods verify method. Closes #4310 . [oleg.frolov@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-21 02:19:40 +00:00
Rick Olson
5525b79b63
Fix in auto_complete_result documentation. closes #5096 . [medlar@medlar.it]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-21 02:18:41 +00:00
Rick Olson
6ba9a1eac1
Fix indent in pagination documentation. Closes #4990 . [Kevin Clark]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-21 02:16:11 +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
486af0254a
Fix strip_links so that it doesn't hang on multi-line acronym tags
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-08 17:19:58 +00:00
Jamis Buck
38efc32529
Remove problematic control chars in rescue template. ( closes #5316 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-08 16:18:10 +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
5ced402393
Remove dependency on Pathname in new routes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-05 16:01:50 +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
Jamis Buck
7d88146e9e
Fix documentation for with_routing to reflect new reality ( closes #5281 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-05 14:14:32 +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
180edf4146
Make new mime types first class [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-02 04:30:43 +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
5240d7a84b
Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-02 04:16:03 +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
ace2a66f0c
Excise the headache-prone syswrite in send_file.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-02 03:34:38 +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