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
Jamis Buck
3a318970b1
Extend deprecate so that alternatives can be specified via the deprecation
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 16:56:59 +00:00
Michael Koziarski
53a97e9d61
Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 07:32:18 +00:00
Michael Koziarski
c08997405d
Update environment.rb comments to include config.autoload_paths. Closes #6478 [caio]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 07:26:18 +00:00
Michael Koziarski
0c94868f67
Update scaffold to use new form_tag block functionality. Closes #6480 [BobSilva]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 07:16:16 +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
Jamis Buck
9c9443812f
Add basic logging support for logging outgoing requests.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 22:21:09 +00:00
Jeremy Kemper
18e2188f5d
Plugin generator: check for class collisions. Closes #4833 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 19:22:01 +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
Marcel Molina
ba5591f212
Expose methods added to Enumerable in the documentation, such as group_by. Closes #6170 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 03:04:50 +00:00
Marcel Molina
fb7807e244
Document other options available to migration's add_column. #6419
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 02:55:21 +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
Jeremy Kemper
8949ce0982
MySQL: all_hashes compatibility with old MysqlRes class. Closes #6429 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 20:30:59 +00:00
Jeremy Kemper
1742d0d707
mailer unit test handles nested fixture paths
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:33:14 +00:00
Jeremy Kemper
ef8f41dc68
reference view path in fixture
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:18:56 +00:00
Jeremy Kemper
8cbe2fed54
.rhtml extension for view only
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:17:02 +00:00
Jeremy Kemper
ba74754c4f
Mailer generator: handle mailers in modules, set mime_version in unit test.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:06:07 +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;, &#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
Michael Koziarski
301f721ef8
Default $KCODE to 'u' to enable the multibyte-safe chars proxy. [Koz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 23:11: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
David Heinemeier Hansson
c1a52510ea
Added config.plugins to control which plugins are loaded #6269 [skaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 20:27:03 +00:00
Michael Koziarski
911f3db00a
Ensure Chars#tidy_bytes only tidies broken bytes. Closes #6397 [Manfred Stienstra]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 08:29:16 +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
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
Nicholas Seckar
d1ae92eeb2
Remove extraneous expand_path; fix plugin load paths
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:29:31 +00:00
Nicholas Seckar
25b5161e16
Add plugins and builtins to the load_path.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:19:21 +00:00
Nicholas Seckar
64c7bf7481
Remove autoload_paths to simplify configuration.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:12:01 +00:00
Rick Olson
c5536f9f00
Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783 . [Jonathan Viney] (sorry, forgot to commit the actual files)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 15:42:55 +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
Nicholas Seckar
497b5dcf19
Add 'unloadable', a method used to mark any constant as requiring an unload after each request.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-15 23:32:31 +00:00
Michael Koziarski
fa5080ae24
Tidy up the markup on the bundled error pages. Closes #6379 . [Tim Lucas]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-15 23:32:30 +00:00
Rick Olson
cdb5132c41
Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783 . [Jonathan Viney]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-15 16:37: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
Nicholas Seckar
2049313e3c
Undo accidental commit
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-14 20:29:05 +00:00
Nicholas Seckar
4257fd6970
Rename overlapping test names
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-14 20:27:29 +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
Michael Koziarski
81ddeadd49
Replace KCODE checks with String#chars for truncate. Closes #6385 [Manfred Stienstra]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-14 00:31:30 +00:00
Jamis Buck
d73f32ce00
make sure the String::Access methods return strings, and not multibyte Char instances
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-13 20:27:46 +00:00