diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2019-06-13 23:20:23 +0200 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2019-06-13 23:20:31 +0200 |
commit | 4f4fd0a625a3edc2a05ae05b7b5a6e110bf5d5a6 (patch) | |
tree | 565a3ae0d8355089fc958909d84b674cbd1c1564 /actionview | |
parent | e2d11970f25890e8baa613bfa33e432bd693627b (diff) | |
download | rails-4f4fd0a625a3edc2a05ae05b7b5a6e110bf5d5a6.tar.gz rails-4f4fd0a625a3edc2a05ae05b7b5a6e110bf5d5a6.tar.bz2 rails-4f4fd0a625a3edc2a05ae05b7b5a6e110bf5d5a6.zip |
[ci skip] Use default path in button_to documentation
This is really a nit pick, but as this is the framework's documentation
I think it should follow standards as many times as possible to avoid
confusion in new users.
If we were using `resources :articles` in routes. which is what scaffold
adds, the generated helper would be `new_article_path` instead of
`new_articles_path`.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index df83dff681..4b3a258287 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -253,7 +253,7 @@ module ActionView # # <input value="New" type="submit" /> # # </form>" # - # <%= button_to "New", new_articles_path %> + # <%= button_to "New", new_article_path %> # # => "<form method="post" action="/articles/new" class="button_to"> # # <input value="New" type="submit" /> # # </form>" |