Document that url_for can take classes

Co-authored-by: oljfte <oljfte@gmail.com>
This commit is contained in:
Shouichi Kamiya 2022-05-13 10:05:16 +09:00
parent d966095055
commit aaa9bcc62e
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ module ActionView
# <%= url_for(action: 'jump', anchor: 'tax&ship') %>
# # => /testing/jump/#tax&ship
#
# <%= url_for(Workshop) %>
# # => /workshops
#
# <%= url_for(Workshop.new) %>
# # relies on Workshop answering a persisted? call (and in this case returning false)
# # => /workshops