Commit Graph

1662 Commits

Author SHA1 Message Date
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
Nicholas Seckar
f92d6a07d0 Reuse named route helper module between Routing reloads to prevent memory leaks.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-17 22:29:02 +00:00
Jeremy Kemper
96cca7db6d ActionView::Base.erb_variable accessor names the buffer variable used to render templates. Defaults to _erbout; use _buf for erubis.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-17 13:10:23 +00:00
Jeremy Kemper
495f113e57 Template errors: fix strange deprecation warnings on e.g. @flash.inspect, remove deprecated @assigns, handle sources without a discernable line number, clean up code.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-17 12:47:08 +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
65ca37b7b7 ARStore needs a data reader method. Closes #4795.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-15 20:08:43 +00:00
Jeremy Kemper
9339db70c6 Remove dead abort_tests method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-15 12:50:51 +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
079d684a37 Fix failing test fallback when neither SQLite 2 or 3 is available.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-15 12:43:34 +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
Sam Stephenson
c192bdfc74 Update to Prototype 1.5.0_rc2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-12 03:44:35 +00:00
Sam Stephenson
4c7dcb5dbf Remove JavaScriptLiteral in favor of ActiveSupport::JSON::Variable.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-11 18:29:11 +00:00
Jeremy Kemper
73cc10305e Sync ActionController::StatusCodes::STATUS_CODES with http://www.iana.org/assignments/http-status-codes. Closes #6586.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-11 01:44:37 +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
Jeremy Kemper
5c2e9a5e48 Cache parsed query parameters. Closes #6559.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-06 21:43:21 +00:00
Jeremy Kemper
5b50504f48 Missed pluralize nil test in [5431].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-06 21:39:16 +00:00
Thomas Fuchs
e52e803a55 Deprecate JavaScriptHelper#update_element_function, which is superseeded by RJS [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-06 09:40:30 +00:00
Jeremy Kemper
4d5b913fcf pluralize helper interprets nil as zero. Closes #6474.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-05 05:04:21 +00:00
Jeremy Kemper
080ec9803e Fix invalid test fixture exposed by stricter Ruby 1.8.5 multipart parsing. Closes #6524.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-05 02:40:44 +00:00
Jeremy Kemper
7f6c5a5654 Set ActionView::Base.default_form_builder once rather than passing the :builder option to every form or overriding the form helper methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-03 04:16:58 +00:00
Jeremy Kemper
a8bb66ace8 Deprecate expire_matched_fragments. Use expire_fragment instead. Closes #6535.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 19:29:40 +00:00
Jeremy Kemper
99b607d717 Consistent default handling in ActionView render. Closes #6534.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 19:21:53 +00:00
Jeremy Kemper
eb7964865a Document that expire_fragment with regexp arg fails on memcached and other caches which don't support iteration over all keys. Closes #6291.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 08:48:44 +00:00
Thomas Fuchs
fe39ac7e56 Update to latest Prototype, which doesnt serialize disabled form elements, adds clone() to arrays, empty/non-string Element.update() and adds a fixes excessive error reporting in WebKit beta versions [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-28 16:55:06 +00:00
David Heinemeier Hansson
b9ffbd3166 Fix scaffolding from using deprecated :post => true (closes #6499)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-26 15:56:48 +00:00
Jamis Buck
29746e7647 make sure link_to_image is deprecated as well as link_image_to
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 18:30:50 +00:00
Jamis Buck
897ffd63d2 Use new deprecate syntax so that alternatives are given with the warning
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5358 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 17:14:50 +00:00
Rick Olson
d4e35666d1 Deprecate start_form_tag and end_form_tag. Use form_tag / '</form>' from now on. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 03:22:48 +00:00
Rick Olson
f7c916ece6 Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 03:06:57 +00:00
David Heinemeier Hansson
e407b44ba1 Made FormTagHelper#form_tag work with blocks, rendering start/end_form_tag deprecated
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 23:30:36 +00:00
David Heinemeier Hansson
6c062054cd Added block-usage to TagHelper#content_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 22:57:59 +00:00
David Heinemeier Hansson
284921a200 Docfix (closes #6462)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 00:01:51 +00:00
David Heinemeier Hansson
b34ed9b339 Docfix (closes #6393)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 23:58:41 +00:00
David Heinemeier Hansson
986c1a6240 Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true (closes #6409) [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 23:54:41 +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
David Heinemeier Hansson
1c71a5d25f Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) (closes #6421) [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 23:47:18 +00:00
David Heinemeier Hansson
afd288cf81 Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets (closes #6454) [BobSilva/chrismear]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 23:41:11 +00:00
Jamis Buck
da18193d5f More consistent implementation of filter replacement (thanks Martin! closes #5949)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-21 16:55:14 +00:00
Rick Olson
1d7196b552 Force *_url named routes to show the host in ActionView [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 18:00:20 +00:00
Sam Stephenson
351a224d90 Add support for converting blocks into function arguments in JavaScriptGenerator#call and JavaScriptProxy#call.
Add JavaScriptGenerator#literal for wrapping a string in an object whose #to_json is the string itself.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-19 22:03:27 +00:00
Rick Olson
dbd0bd5e5c Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-18 16:42:19 +00:00
Rick Olson
02358c83b7 Fix double-escaped entities, such as &amp;amp;, &amp;#123;, etc. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-18 15:58:07 +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
David Heinemeier Hansson
f366eb4b2d GET parameter keys can be escaped too [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 22:06:54 +00:00
Jamis Buck
2d33676691 Fix deprecation warnings when rendering the template error template.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 19:59:46 +00:00