Skip to content

Commit 388230d

Browse files
committed
Render rdoc code example for routing defaults method
1 parent c0807dc commit 388230d

File tree

1 file changed

+1
-0
lines changed
  • actionpack/lib/action_dispatch/routing

1 file changed

+1
-0
lines changed

actionpack/lib/action_dispatch/routing/mapper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ def constraints(constraints = {}, &block)
10531053
end
10541054

10551055
# Allows you to set default parameters for a route, such as this:
1056+
#
10561057
# defaults id: 'home' do
10571058
# match 'scoped_pages/(:id)', to: 'pages#show'
10581059
# end

0 commit comments

Comments
 (0)