railties 3.0.0.rc → 3.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/CHANGELOG +80 -75
  2. data/README.rdoc +1 -1
  3. data/guides/assets/stylesheets/main.css +14 -14
  4. data/guides/rails_guides.rb +20 -1
  5. data/guides/rails_guides/generator.rb +7 -7
  6. data/guides/source/2_3_release_notes.textile +5 -5
  7. data/guides/source/3_0_release_notes.textile +4 -3
  8. data/guides/source/action_controller_overview.textile +32 -17
  9. data/guides/source/action_view_overview.textile +44 -44
  10. data/guides/source/active_record_basics.textile +2 -2
  11. data/guides/source/active_record_querying.textile +7 -7
  12. data/guides/source/active_record_validations_callbacks.textile +20 -20
  13. data/guides/source/active_support_core_extensions.textile +370 -198
  14. data/guides/source/ajax_on_rails.textile +17 -17
  15. data/guides/source/api_documentation_guidelines.textile +3 -3
  16. data/guides/source/association_basics.textile +2 -2
  17. data/guides/source/caching_with_rails.textile +5 -5
  18. data/guides/source/command_line.textile +8 -8
  19. data/guides/source/configuring.textile +6 -6
  20. data/guides/source/contributing_to_rails.textile +14 -11
  21. data/guides/source/debugging_rails_applications.textile +8 -6
  22. data/guides/source/form_helpers.textile +1 -1
  23. data/guides/source/generators.textile +34 -30
  24. data/guides/source/getting_started.textile +13 -13
  25. data/guides/source/i18n.textile +12 -1
  26. data/guides/source/index.html.erb +4 -0
  27. data/guides/source/initialization.textile +67 -72
  28. data/guides/source/layout.html.erb +1 -0
  29. data/guides/source/layouts_and_rendering.textile +9 -9
  30. data/guides/source/nested_model_forms.textile +7 -7
  31. data/guides/source/plugins.textile +1 -1
  32. data/guides/source/rails_application_templates.textile +2 -2
  33. data/guides/source/routing.textile +27 -5
  34. data/guides/source/security.textile +6 -6
  35. data/guides/w3c_validator.rb +9 -9
  36. data/lib/rails/application.rb +1 -0
  37. data/lib/rails/application/configuration.rb +1 -1
  38. data/lib/rails/code_statistics.rb +4 -4
  39. data/lib/rails/commands.rb +1 -1
  40. data/lib/rails/commands/dbconsole.rb +1 -1
  41. data/lib/rails/commands/plugin.rb +1 -1
  42. data/lib/rails/commands/runner.rb +1 -1
  43. data/lib/rails/deprecation.rb +31 -52
  44. data/lib/rails/engine.rb +1 -1
  45. data/lib/rails/engine/configuration.rb +28 -1
  46. data/lib/rails/generators.rb +2 -2
  47. data/lib/rails/generators/actions.rb +3 -3
  48. data/lib/rails/generators/active_model.rb +3 -3
  49. data/lib/rails/generators/base.rb +1 -1
  50. data/lib/rails/generators/rails/app/app_generator.rb +9 -3
  51. data/lib/rails/generators/rails/app/templates/Gemfile +2 -2
  52. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +4 -13
  53. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +1 -1
  54. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +4 -0
  55. data/lib/rails/generators/rails/app/templates/config/routes.rb +4 -4
  56. data/lib/rails/generators/rails/app/templates/public/index.html +0 -23
  57. data/lib/rails/generators/rails/app/templates/public/javascripts/effects.js +1 -1
  58. data/lib/rails/generators/rails/generator/USAGE +3 -2
  59. data/lib/rails/generators/rails/migration/USAGE +4 -4
  60. data/lib/rails/generators/rails/plugin/USAGE +1 -1
  61. data/lib/rails/generators/rails/resource/resource_generator.rb +2 -2
  62. data/lib/rails/generators/test_case.rb +1 -1
  63. data/lib/rails/info_controller.rb +1 -1
  64. data/lib/rails/plugin.rb +1 -1
  65. data/lib/rails/rack/log_tailer.rb +2 -5
  66. data/lib/rails/railtie.rb +22 -22
  67. data/lib/rails/script_rails_loader.rb +2 -2
  68. data/lib/rails/tasks/documentation.rake +5 -5
  69. data/lib/rails/tasks/framework.rake +1 -1
  70. data/lib/rails/tasks/routes.rake +23 -9
  71. data/lib/rails/test_unit/testing.rake +3 -2
  72. data/lib/rails/version.rb +1 -1
  73. metadata +10 -10
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *Rails 3.0.0 [release candidate 2] (August 23rd, 2010)*
2
+
3
+ * No material changes (see http://github.com/rails/rails/compare/v3.0.0_RC...v3.0.0_RC2 for gory details)
4
+
5
+
1
6
  *Rails 3.0.0 [release candidate] (July 26th, 2010)*
2
7
 
3
8
  * Application generation: --skip-testunit and --skip-activerecord become --skip-test-unit
@@ -46,7 +51,7 @@
46
51
  * Removed all the default commands in script/* and replaced them with script/rails and a rails command that'll act the same when run from within the app [DHH]. Example:
47
52
 
48
53
  ./script/generate scaffold post title:string can now be called as rails g scaffold post title:string
49
-
54
+
50
55
  Run rails --help inside an app for more help.
51
56
 
52
57
  * Removed config/initializers/new_rails_defaults.rb as all frameworks now follow the settings from it [DHH]
@@ -68,7 +73,7 @@
68
73
 
69
74
  cookies.permanent.signed[:remember_me] = current_user.id
70
75
  # => Set-Cookie: discount=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT
71
-
76
+
72
77
  ...to use the signed cookies, you need to set a secret to ActionController::Base.cookie_verifier_secret (automatically done in config/initializers/cookie_verification_secret.rb for new Rails applications).
73
78
 
74
79
  * Added config/initializers/cookie_verification_secret.rb with an auto-generated secret for using ActionController::Base#cookies.signed [DHH]
@@ -101,42 +106,42 @@
101
106
  * Add "-m/--template" option to Rails generator to apply a template to the generated application. [Jeremy McAnally]
102
107
 
103
108
  This has been extracted from rg - http://github.com/jeremymcanally/rg
104
-
109
+
105
110
  Example:
106
-
111
+
107
112
  # template.rb
108
-
113
+
109
114
  # Install plugins from git or svn
110
115
  plugin "will-paginate", :git => "git://github.com/mislav/will_paginate.git"
111
116
  plugin "old-restful-auth", :svn => "http://svn.techno-weenie.net/projects/plugins/restful_authentication/"
112
-
117
+
113
118
  # Add gems to environment.rb
114
119
  gem "jeremymcanally-context"
115
120
  gem "bluecloth"
116
-
121
+
117
122
  # Vendor file. Data in a string or...
118
123
  vendor("borrowed.rb", <<CODE
119
124
  def helpful_method
120
125
  do_something_helpful_here
121
126
  end
122
127
  CODE
123
-
128
+
124
129
  # ...file data from block return value.
125
130
  # #initializer creates a new initializer file
126
131
  initializer("crypto.rb") do
127
132
  salt = "--#{Time.now}--#{rand}--#{srand(Time.now.to_i)}"
128
-
133
+
129
134
  "SPECIAL_SALT = '#{salt}'"
130
135
  end
131
-
136
+
132
137
  Usage:
133
-
138
+
134
139
  To use a template, provide a file path or URL:
135
-
140
+
136
141
  1. Using a local file :
137
142
 
138
143
  rails <application name> -m /path/to/my/template.rb
139
-
144
+
140
145
  2. Or directly from a URL :
141
146
 
142
147
  rails <application name> --template=http://gist.github.com/31208.txt
@@ -235,7 +240,7 @@
235
240
 
236
241
  rake gems:unpack # unpacks all gems
237
242
  rake gems:unpack GEM=mygem # unpacks only the gem 'mygem'
238
-
243
+
239
244
  rake gems:build # builds all unpacked gems
240
245
  rake gems:build GEM=mygem # builds only the gem 'mygem'
241
246
 
@@ -246,16 +251,16 @@
246
251
  * Allow files in plugins to be reloaded like the rest of the application. [Rick Olson]
247
252
 
248
253
  Enables or disables plugin reloading.
249
-
254
+
250
255
  config.reload_plugins = true
251
-
256
+
252
257
  You can get around this setting per plugin.
253
258
  If #reload_plugins? == false (DEFAULT), add this to your plugin's init.rb to make it reloadable:
254
-
259
+
255
260
  Dependencies.load_once_paths.delete lib_path
256
-
261
+
257
262
  If #reload_plugins? == true, add this to your plugin's init.rb to only load it once:
258
-
263
+
259
264
  Dependencies.load_once_paths << lib_path
260
265
 
261
266
  * Small tweak to allow plugins to specify gem dependencies. [Rick Olson]
@@ -280,13 +285,13 @@
280
285
  config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
281
286
  config.gem "aws-s3", :lib => "aws/s3"
282
287
  end
283
-
288
+
284
289
  # List required gems.
285
290
  rake gems
286
-
291
+
287
292
  # Install all required gems:
288
293
  rake gems:install
289
-
294
+
290
295
  # Unpack specified gem to vendor/gems/gem_name-x.x.x
291
296
  rake gems:unpack GEM=bj
292
297
 
@@ -473,9 +478,9 @@ databases on localhost. #9753 [Trevor Wennblom]
473
478
  For example:
474
479
 
475
480
  ruby script/generation migration AddSomeStuffToCustomers first_name:string last_name:string
476
-
481
+
477
482
  or
478
-
483
+
479
484
  ruby script/generation migration RemoveSomeStuffFromCustomers first_name:string last_name:string
480
485
 
481
486
  * Add ActiveResource to Rails::Info. Closes #8741 [Chris Kampmeier]
@@ -535,13 +540,13 @@ databases on localhost. #9753 [Trevor Wennblom]
535
540
  * Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [David Heinemeier Hansson]
536
541
 
537
542
  To use the new debugger, start your server with script/server --debugger and insert a call to 'debugger'
538
- (instead of 'breakpoint') where you want to jump into the debugger.
539
-
543
+ (instead of 'breakpoint') where you want to jump into the debugger.
544
+
540
545
  BACKWARDS INCOMPATIBILITY NOTE: You must remove the default line 12 from config/environments/development.rb:
541
-
546
+
542
547
  config.breakpoint_server = true
543
-
544
- This configuration option is no longer available. Rails will fail to start in development mode as long as
548
+
549
+ This configuration option is no longer available. Rails will fail to start in development mode as long as
545
550
  that's still present.
546
551
 
547
552
  * Resource scaffolding returns the created entity.to_xml. [Jeremy Kemper]
@@ -553,7 +558,7 @@ databases on localhost. #9753 [Trevor Wennblom]
553
558
  * Include Active Resource instead of Action Web Service [David Heinemeier Hansson] You can add AWS back with this in config/environment.rb:
554
559
 
555
560
  config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/actionwebservice/lib )
556
-
561
+
557
562
  ...or just gem 'actionwebservice'
558
563
 
559
564
  * Give generate scaffold a more descriptive database message. Closes #7316 [Jeremy McAnally]
@@ -566,7 +571,7 @@ databases on localhost. #9753 [Trevor Wennblom]
566
571
 
567
572
  * Windows: include MinGW in RUBY_PLATFORM check. #2982 [okkez000@gmail.com, Kaspar Schiess]
568
573
 
569
- * Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.]
574
+ * Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.]
570
575
 
571
576
  * Split plugin location and loading out of the initializer and into a new Plugin namespace, which includes Plugin::Locater and Plugin::Loader. The loader class that is used can be customized using the config.plugin_loader option. Those monkey patching the plugin loading subsystem take note, the internals changing here will likely break your modifications. The good news is that it should be substantially easier to hook into the plugin locating and loading process now. [Marcel Molina Jr.]
572
577
 
@@ -602,7 +607,7 @@ databases on localhost. #9753 [Trevor Wennblom]
602
607
 
603
608
  * Ensure plugins are in the Dependencies.load_once_paths collection by default. [Rick Olson]
604
609
  If you really want your plugins to reload, add this to the very top of init.rb:
605
-
610
+
606
611
  Dependencies.load_once_paths.delete(lib_path)
607
612
 
608
613
  * Allow config.to_prepare to work, make the dispatcher safe to 're require'. [Michael Koziarski, Nicholas Seckar]
@@ -724,9 +729,9 @@ databases on localhost. #9753 [Trevor Wennblom]
724
729
 
725
730
  * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As
726
731
  documented in initializer.rb, the workaround is:
727
-
732
+
728
733
  config.autoload_paths += Dir[RAILS_ROOT + '/app/models/*/']
729
-
734
+
730
735
  References #6031. [Nicholas Seckar]
731
736
 
732
737
  * Update to script.aculo.us 1.6.3 [Thomas Fuchs]
@@ -811,10 +816,10 @@ References #6031. [Nicholas Seckar]
811
816
  0002 def show
812
817
  0003-> breakpoint
813
818
  0004 end
814
- 0005
819
+ 0005
815
820
  0006 def index
816
821
  0007 end
817
- 0008
822
+ 0008
818
823
  => "/path/to/rails/root/app/controllers/top_controller.rb"
819
824
 
820
825
  irb(#<TopController:0x40822a68>):004:0> show_call_stack 3
@@ -905,7 +910,7 @@ References #6031. [Nicholas Seckar]
905
910
 
906
911
  * Ensure plugins are in the Dependencies.load_once_paths collection by default. [Rick Olson]
907
912
  If you really want your plugins to reload, add this to the very top of init.rb:
908
-
913
+
909
914
  Dependencies.load_once_paths.delete(lib_path)
910
915
 
911
916
  * Fix scaffold_resource generator so it respects the --pretend argument when creating the routes file. Closes #6852 [fearoffish]
@@ -1011,9 +1016,9 @@ References #6031. [Nicholas Seckar]
1011
1016
 
1012
1017
  * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As
1013
1018
  documented in initializer.rb, the workaround is:
1014
-
1019
+
1015
1020
  config.autoload_paths += Dir[RAILS_ROOT + '/app/models/*/']
1016
-
1021
+
1017
1022
  References #6031. [Nicholas Seckar]
1018
1023
 
1019
1024
  * Update to script.aculo.us 1.6.3 [Thomas Fuchs]
@@ -1094,10 +1099,10 @@ References #6031. [Nicholas Seckar]
1094
1099
  0002 def show
1095
1100
  0003-> breakpoint
1096
1101
  0004 end
1097
- 0005
1102
+ 0005
1098
1103
  0006 def index
1099
1104
  0007 end
1100
- 0008
1105
+ 0008
1101
1106
  => "/path/to/rails/root/app/controllers/top_controller.rb"
1102
1107
 
1103
1108
  irb(#<TopController:0x40822a68>):004:0> show_call_stack 3
@@ -1332,7 +1337,7 @@ References #6031. [Nicholas Seckar]
1332
1337
 
1333
1338
  * Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [David Heinemeier Hansson]
1334
1339
 
1335
- * Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the Rails skeleton [David Heinemeier Hansson]
1340
+ * Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the Rails skeleton [David Heinemeier Hansson]
1336
1341
 
1337
1342
  * Added that script/generate model will now automatically create a migration file for the model created. This can be turned off by calling the generator with --skip-migration [David Heinemeier Hansson]
1338
1343
 
@@ -1711,7 +1716,7 @@ References #6031. [Nicholas Seckar]
1711
1716
 
1712
1717
  # runs the one statement 10 times
1713
1718
  script/benchmarker 10 'Person.expensive_method(10)'
1714
-
1719
+
1715
1720
  # pits the two statements against each other with 50 runs each
1716
1721
  script/benchmarker 50 'Person.expensive_method(10)' 'Person.cheap_method(10)'
1717
1722
 
@@ -1751,18 +1756,18 @@ References #6031. [Nicholas Seckar]
1751
1756
  * Changed .htaccess to allow dispatch.* to be called from a sub-directory as part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Lütke]
1752
1757
 
1753
1758
  * Added script/runner which can be used to run code inside the environment by eval'ing the first parameter. Examples:
1754
-
1759
+
1755
1760
  ./script/runner 'ReminderService.deliver'
1756
1761
  ./script/runner 'Mailer.receive(STDIN.read)'
1757
-
1762
+
1758
1763
  This makes it easier to do CRON and postfix scripts without actually making a script just to trigger 1 line of code.
1759
1764
 
1760
1765
  * Fixed webrick_server cookie handling to allow multiple cookes to be set at once #800, #813 [dave@cherryville.org]
1761
1766
 
1762
1767
  * Fixed the Rakefile's interaction with postgresql to:
1763
1768
 
1764
- 1. Use PGPASSWORD and PGHOST in the environment to fix prompting for
1765
- passwords when connecting to a remote db and local socket connections.
1769
+ 1. Use PGPASSWORD and PGHOST in the environment to fix prompting for
1770
+ passwords when connecting to a remote db and local socket connections.
1766
1771
  2. Add a '-x' flag to pg_dump which stops it dumping privileges #807 [rasputnik]
1767
1772
  3. Quote the user name and use template0 when dumping so the functions doesn't get dumped too #855 [pburleson]
1768
1773
  4. Use the port if available #875 [madrobby]
@@ -1825,10 +1830,10 @@ References #6031. [Nicholas Seckar]
1825
1830
 
1826
1831
  Controller: components/list/items_controller.rb
1827
1832
  (holds a List::ItemsController class with uses_component_template_root called)
1828
-
1833
+
1829
1834
  Model : components/list/item.rb
1830
1835
  (namespace is still shared, so an Item model in app/models will take precedence)
1831
-
1836
+
1832
1837
  Views : components/list/items/show.rhtml
1833
1838
 
1834
1839
 
@@ -1921,11 +1926,11 @@ References #6031. [Nicholas Seckar]
1921
1926
 
1922
1927
  * Fixed dependency management to happen in a unified fashion for Active Record and Action Pack using the new Dependencies module. This means that
1923
1928
  the environment options needs to change from:
1924
-
1929
+
1925
1930
  Before in development.rb:
1926
1931
  ActionController::Base.reload_dependencies = true  
1927
1932
  ActiveRecord::Base.reload_associations     = true
1928
-
1933
+
1929
1934
  Now in development.rb:
1930
1935
  Dependencies.mechanism = :load
1931
1936
 
@@ -1979,41 +1984,41 @@ References #6031. [Nicholas Seckar]
1979
1984
 
1980
1985
  * Added breakpoint support through the script/breakpointer client. This means that you can break out of execution at any point in
1981
1986
  the code, investigate and change the model, AND then resume execution! Example:
1982
-
1987
+
1983
1988
  class WeblogController < ActionController::Base
1984
1989
  def index
1985
1990
  @posts = Post.find_all
1986
1991
  breakpoint "Breaking out from the list"
1987
1992
  end
1988
1993
  end
1989
-
1990
- So the controller will accept the action, run the first line, then present you with a IRB prompt in the breakpointer window.
1994
+
1995
+ So the controller will accept the action, run the first line, then present you with a IRB prompt in the breakpointer window.
1991
1996
  Here you can do things like:
1992
-
1997
+
1993
1998
  Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in 'breakpoint'
1994
1999
 
1995
2000
  >> @posts.inspect
1996
- => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
2001
+ => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
1997
2002
  #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
1998
2003
  >> @posts.first.title = "hello from a breakpoint"
1999
2004
  => "hello from a breakpoint"
2000
2005
 
2001
2006
  ...and even better is that you can examine how your runtime objects actually work:
2002
2007
 
2003
- >> f = @posts.first
2008
+ >> f = @posts.first
2004
2009
  => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
2005
2010
  >> f.
2006
2011
  Display all 152 possibilities? (y or n)
2007
-
2012
+
2008
2013
  Finally, when you're ready to resume execution, you press CTRL-D
2009
2014
 
2010
2015
  * Changed environments to be configurable through an environment variable. By default, the environment is "development", but you
2011
2016
  can change that and set your own by configuring the Apache vhost with a string like (mod_env must be available on the server):
2012
-
2017
+
2013
2018
  SetEnv RAILS_ENV production
2014
-
2019
+
2015
2020
  ...if you're using WEBrick, you can pick the environment to use with the command-line parameters -e/--environment, like this:
2016
-
2021
+
2017
2022
  ruby public/dispatcher.servlet -e production
2018
2023
 
2019
2024
  * Added a new default environment called "development", which leaves the production environment to be tuned exclusively for that.
@@ -2028,11 +2033,11 @@ References #6031. [Nicholas Seckar]
2028
2033
 
2029
2034
  app/controllers/account_controller.rb # URL: /account/
2030
2035
  app/controllers/admin/account_controller.rb # URL: /admin/account/
2031
-
2036
+
2032
2037
  NOTE: You need to update your public/.htaccess with the new rules to pick it up
2033
2038
 
2034
- * Added reloading for associations and dependencies under cached environments like FastCGI and mod_ruby. This makes it possible to use
2035
- those environments for development. This is turned on by default, but can be turned off with
2039
+ * Added reloading for associations and dependencies under cached environments like FastCGI and mod_ruby. This makes it possible to use
2040
+ those environments for development. This is turned on by default, but can be turned off with
2036
2041
  ActiveRecord::Base.reload_associations = false and ActionController::Base.reload_dependencies = false in production environments.
2037
2042
 
2038
2043
  * Added support for sub-directories in app/models. So now you can have something like Basecamp with:
@@ -2041,7 +2046,7 @@ References #6031. [Nicholas Seckar]
2041
2046
  app/models/project
2042
2047
  app/models/participants
2043
2048
  app/models/settings
2044
-
2049
+
2045
2050
  It's poor man's namespacing, but only for file-system organization. You still require files just like before.
2046
2051
  Nothing changes inside the files themselves.
2047
2052
 
@@ -2061,7 +2066,7 @@ References #6031. [Nicholas Seckar]
2061
2066
  @david.projects << @new_project
2062
2067
  breakpoint "Let's have a closer look at @david"
2063
2068
  end
2064
-
2069
+
2065
2070
  You need to install dev-utils yourself for this to work ("gem install dev-util").
2066
2071
 
2067
2072
  * Added shared generator behavior so future upgrades should be possible without manually copying over files [Jeremy Kemper]
@@ -2120,7 +2125,7 @@ References #6031. [Nicholas Seckar]
2120
2125
 
2121
2126
  *0.7.0*
2122
2127
 
2123
- * Added an optional second argument to the new_model script that allows the programmer to specify the table name,
2128
+ * Added an optional second argument to the new_model script that allows the programmer to specify the table name,
2124
2129
  which will used to generate a custom table_name method in the model and will also be used in the creation of fixtures.
2125
2130
  [Kevin Radloff]
2126
2131
 
@@ -2134,8 +2139,8 @@ References #6031. [Nicholas Seckar]
2134
2139
 
2135
2140
  * create_fixtures in both the functional and unit test helper now turns off the log during fixture generation
2136
2141
  and can generate more than one fixture at a time. Which makes it possible for assignments like:
2137
-
2138
- @people, @projects, @project_access, @companies, @accounts =
2142
+
2143
+ @people, @projects, @project_access, @companies, @accounts =
2139
2144
  create_fixtures "people", "projects", "project_access", "companies", "accounts"
2140
2145
 
2141
2146
  * Upgraded to Action Pack 0.8.5 (locally-scoped variables, partials, advanced send_file)
@@ -2147,7 +2152,7 @@ References #6031. [Nicholas Seckar]
2147
2152
 
2148
2153
  * No longer specifies a template for rdoc, so it'll use whatever is default (you can change it in the rakefile)
2149
2154
 
2150
- * The new_model generator will now use the same rules for plural wordings as Active Record
2155
+ * The new_model generator will now use the same rules for plural wordings as Active Record
2151
2156
  (so Category will give categories, not categorys) [Kevin Radloff]
2152
2157
 
2153
2158
  * dispatch.fcgi now sets FCGI_PURE_RUBY to true to ensure that it's the Ruby version that's loaded [danp]
@@ -2173,13 +2178,13 @@ References #6031. [Nicholas Seckar]
2173
2178
 
2174
2179
  * Added environments that can be included from any script to get the full Active Record and Action Controller
2175
2180
  context running. This can be used by maintenance scripts or to interact with the model through IRB. Example:
2176
-
2181
+
2177
2182
  require 'config/environments/production'
2178
-
2183
+
2179
2184
  for account in Account.find_all
2180
2185
  account.recalculate_interests
2181
2186
  end
2182
-
2187
+
2183
2188
  A short migration script for an account model that had it's interest calculation strategy changed.
2184
2189
 
2185
2190
  * Accessing the index of a controller with "/weblog" will now redirect to "/weblog/" (only on Apache, not WEBrick)
@@ -2202,7 +2207,7 @@ References #6031. [Nicholas Seckar]
2202
2207
 
2203
2208
  * Added lib in root as a place to store app specific libraries
2204
2209
 
2205
- * Added lib and vendor to load_path, so anything store within can be loaded directly.
2210
+ * Added lib and vendor to load_path, so anything store within can be loaded directly.
2206
2211
  Hence lib/redcloth.rb can be loaded with require "redcloth"
2207
2212
 
2208
2213
  * Upgraded to Action Pack 0.7.8 (lots of fixes)
@@ -2216,7 +2221,7 @@ References #6031. [Nicholas Seckar]
2216
2221
 
2217
2222
  * Updated the generated template stubs to valid XHTML files
2218
2223
 
2219
- * Ensure that controllers generated are capitalized, so "new_controller TodoLists"
2224
+ * Ensure that controllers generated are capitalized, so "new_controller TodoLists"
2220
2225
  gives the same as "new_controller Todolists" and "new_controller todolists".
2221
2226
 
2222
2227
 
data/README.rdoc CHANGED
@@ -15,7 +15,7 @@ The latest version of Railties can be installed with Rubygems:
15
15
 
16
16
  * gem install railties
17
17
 
18
- Documentation can be found at
18
+ Documentation can be found at
19
19
 
20
20
  * http://api.rubyonrails.org
21
21