Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/commentable/routes.rb
Instance Method Summary collapse
Instance Method Details
#commentable(options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/commentable/routes.rb', line 4 def commentable( = {}) resources :comments, do put :spam, :troll, :on => :member end end |