提交 4fe70ee4 编写于 作者: Y Yves Senn 提交者: Yves Senn

augment the rails4 guide with links to PRs

上级 ce7a493a
......@@ -7,6 +7,7 @@ Highlights in Rails 4.0: (WIP)
* Strong Parameters
* Queue API
* Caching Improvements
* ActionController::Live
These release notes cover the major changes, but do not include each bug-fix and changes. If you want to see everything, check out the [list of commits](https://github.com/rails/rails/commits/master) in the main Rails repository on GitHub.
......@@ -99,7 +100,7 @@ Railties
* Add `.rake` to list of file extensions included by `rake notes` and `rake notes:custom`.
* New test locations `test/models`, `test/helpers`, `test/controllers`, and `test/mailers`. Corresponding rake tasks added as well.
* New test locations `test/models`, `test/helpers`, `test/controllers`, and `test/mailers`. Corresponding rake tasks added as well. ([Pull Request](https://github.com/rails/rails/pull/7878))
* Set a different cache per environment for assets pipeline through `config.assets.cache`.
......@@ -181,7 +182,7 @@ Action Mailer
* Raise an `ActionView::MissingTemplate` exception when no implicit template could be found.
* Asynchronously send messages via the Rails Queue.
* Asynchronously send messages via the Rails Queue. ([Pull Request](https://github.com/rails/rails/pull/6839))
* Delivery Options (such as SMTP Settings) can now be set dynamically per mailer action.
......@@ -211,6 +212,8 @@ Action Pack
If you add the above code, you can use `<%= error %>` in an erb, and `redirect_to /foo, :error => 'message'` in a controller.
* Encrypted Cookies + Sign using Derived Keys. ([Pull Request](https://github.com/rails/rails/pull/8112))
* Remove Active Model dependency from Action Pack.
* Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping:
......@@ -308,6 +311,8 @@ Action Pack
* Show routes in exception page while debugging a `RoutingError` in development.
* Helper methods for HTML5 inputs. ([Pull Request](https://github.com/rails/rails/pull/6359))
* Include `mounted_helpers` (helpers for accessing mounted engines) in `ActionDispatch::IntegrationTest` by default.
* Added `ActionDispatch::SSL` middleware that when included force all the requests to be under HTTPS protocol.
......@@ -591,7 +596,7 @@ Active Record
store :settings, accessors: [ :color, :homepage ], coder: JSON
```
* `mysql` and `mysql2` connections will set `SQL_MODE=STRICT_ALL_TABLES` by default to avoid silent data loss. This can be disabled by specifying `strict: false` in `config/database.yml`.
* `mysql` and `mysql2` connections will set `SQL_MODE=STRICT_ALL_TABLES` by default to avoid silent data loss. This can be disabled by specifying `strict: false` in `config/database.yml`. ([Pull Request](https://github.com/rails/rails/pull/6069))
* Added default order to `ActiveRecord::Base#first` to assure consistent results among different database engines. Introduced `ActiveRecord::Base#take` as a replacement to the old behavior.
......@@ -628,7 +633,7 @@ Active Record
* Remove IdentityMap - IdentityMap has never graduated to be an "enabled-by-default" feature, due to some inconsistencies with associations, as described in this [commit](https://github.com/rails/rails/commit/302c912bf6bcd0fa200d964ec2dc4a44abe328a6). Hence the removal from the codebase, until such issues are fixed.
* Added a feature to dump/load internal state of `SchemaCache` instance because we want to boot more quickly when we have many models.
* Added a feature to dump/load internal state of `SchemaCache` instance because we want to boot more quickly when we have many models. ([Pull Request](https://github.com/rails/rails/pull/5162))
```ruby
# execute rake task.
......@@ -699,6 +704,8 @@ Active Record
* PostgreSQL hstore types are automatically deserialized from the database.
* Support for array datatype in PostgreSQL. ([Pull Request](https://github.com/rails/rails/pull/7547))
* Added `#update_columns` method which updates the attributes from the passed-in hash without calling save, hence skipping validations and callbacks. `ActiveRecordError` will be raised when called on new objects or when at least one of the attributes is marked as read only.
```ruby
......@@ -833,7 +840,7 @@ Active Model
* `ConfirmationValidator` error messages will attach to `:#{attribute}_confirmation` instead of `attribute`.
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with Action Pack out of the box.
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with Action Pack out of the box. ([Pull Request](https://github.com/rails/rails/pull/5253))
* `ActiveModel::Errors#to_json` supports a new parameter `:full_messages`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册