Skip to content

Commit

Permalink
Merge pull request #45083 from shouichi/doc-url-for-can-take-classes
Browse files Browse the repository at this point in the history
Document that url_for can take classes [ci-skip]
  • Loading branch information
jonathanhefner committed May 13, 2022
2 parents d966095 + aaa9bcc commit 25b1267
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actionview/lib/action_view/routing_url_for.rb
Expand Up @@ -47,6 +47,9 @@ module RoutingUrlFor
# <%= 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
Expand Down

0 comments on commit 25b1267

Please sign in to comment.