Annotate routes information to your controllers.
class CommentsController < ApplicationController
# == Route Info
# comments GET /comments(.:format)
def index
end
# == Route Info
# POST /comments(.:format)
def create
end
# == Route Info
# PATCH /comments/:id(.:format)
# PUT /comments/:id(.:format)
def update
end
# == Route Info
# DELETE /comments/:id(.:format)
def destroy
end
end
Add this line to your application's Gemfile:
gem 'annotate_routes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install annotate_routes
$ rake annotate_routes
- Fork it ( https://github.com/mtsmfm/annotate_routes/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request