Browse files

Update #resources documentation [ci skip]

  • Loading branch information...
1 parent 7b7501b commit c5fcc9ad1cd95854c3c8129f453982c6acd8fd61 @paneq paneq committed Jul 31, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_dispatch/routing/mapper.rb
View
4 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1186,6 +1186,10 @@ def resource(*resources, &block)
# sekret_comment PATCH/PUT /comments/:id(.:format)
# sekret_comment DELETE /comments/:id(.:format)
#
+ # [:format]
+ # Allows you to specify default value for optional +format+ segment
+ # or disable it if you supply +false+
+ #
# === Examples
#
# # routes call <tt>Admin::PostsController</tt>

0 comments on commit c5fcc9a

Please sign in to comment.