1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[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`.
This commit is contained in:
Alberto Almagro 2019-06-13 23:20:23 +02:00
parent e2d11970f2
commit 4f4fd0a625

View file

@ -253,7 +253,7 @@ module ActionView
# # <input value="New" type="submit" /> # # <input value="New" type="submit" />
# # </form>" # # </form>"
# #
# <%= button_to "New", new_articles_path %> # <%= button_to "New", new_article_path %>
# # => "<form method="post" action="/articles/new" class="button_to"> # # => "<form method="post" action="/articles/new" class="button_to">
# # <input value="New" type="submit" /> # # <input value="New" type="submit" />
# # </form>" # # </form>"