rails3.0新功能介绍(待续)

1.Session store configuration has changed: config.session_store :cookie_store, {:key => "..."}  config.cookie_secret = "fdsfhisdghfidugnfdlg"
2.Added "rake about" as a replacement for script/about.
3.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:  ./script/generate scaffold post title:string  can now be called as  rails g scaffold post title:string    Run rails --help inside an app for more help.
4.Renamed config.cookie_secret to config.secret_token and pass it as env key.
5.Removed config/initializers/new_rails_defaults.rb as all frameworks now follow the settings from it [DHH]* Set config.time_zone to UTC by default.

你可能感兴趣的:(Rails)