aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-03-18 22:09:53 -0400
committerJon Moss <me@jonathanmoss.me>2017-03-18 22:09:53 -0400
commitcb12b2a075956cac23da86648028b45e8ee30f69 (patch)
treead0eec73440c507eff5c8a81177704796af816a1
parent33786f62f9a1f9bd855bc51da501fb6a0fd6d0bf (diff)
downloadrails-cb12b2a075956cac23da86648028b45e8ee30f69.tar.gz
rails-cb12b2a075956cac23da86648028b45e8ee30f69.tar.bz2
rails-cb12b2a075956cac23da86648028b45e8ee30f69.zip
Second pass on 5.1 release notes
[ci skip]
-rw-r--r--guides/source/5_1_release_notes.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/5_1_release_notes.md b/guides/source/5_1_release_notes.md
index 5b46cc57b2..1b6eb76e32 100644
--- a/guides/source/5_1_release_notes.md
+++ b/guides/source/5_1_release_notes.md
@@ -133,7 +133,7 @@ resolve("Basket") { [:basket] }
<% end %>
```
-This will generate the singular URL `/basket` instead of usual `/baskets/:id`.
+This will generate the singular URL `/basket` instead of the usual `/baskets/:id`.
The `direct` method allows creation of custom URL helpers.
@@ -145,8 +145,8 @@ direct(:homepage) { "http://www.rubyonrails.org" }
```
The return value of the block must be a valid argument for the `url_for`
-method. So you can pass a valid string URL, or a hash, or an array, or an
-Active Model instance or an Active Model class.
+method. So, you can pass a valid string URL, Hash, array, an
+Active Model instance, or an Active Model class.
``` ruby
direct :commentable do |model|
@@ -162,10 +162,10 @@ end
[Pull Request](https://github.com/rails/rails/pull/26976)
-Before Rails 5.1, there were two interfaces for handling HTML forms,
+Before Rails 5.1, there were two interfaces for handling HTML forms:
`form_for` for model instances and `form_tag` for custom URLs.
-Rails 5.1 combines both of these interfaces with `form_with` and
+Rails 5.1 combines both of these interfaces with `form_with`, and
can generate form tags based on URLs, scopes or models.
``` erb