From 4f4fd0a625a3edc2a05ae05b7b5a6e110bf5d5a6 Mon Sep 17 00:00:00 2001 From: Alberto Almagro Date: Thu, 13 Jun 2019 23:20:23 +0200 Subject: [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`. --- actionview/lib/action_view/helpers/url_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib/action_view/helpers/url_helper.rb') 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 # # # # " # - # <%= button_to "New", new_articles_path %> + # <%= button_to "New", new_article_path %> # # => "
# # # #
" -- cgit v1.2.3