mirror of https://github.com/rails/rails
Document that url_for can take classes
Co-authored-by: oljfte <oljfte@gmail.com>
This commit is contained in:
parent
d966095055
commit
aaa9bcc62e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue