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:
parent
e2d11970f2
commit
4f4fd0a625
1 changed files with 1 additions and 1 deletions
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue