First Draft DevToolbar for appdev-projects beginner ergonomics in Rails applications.
Add this line to your application's Gemfile:
group :development do
gem "dev_toolbar"
endThen execute:
bundle installThen, add a configuration file with the names and routes you want links for:
# config/initializers/dev_toolbar.rb
if Rails.env.development?
DevToolbar.configure do |config|
config.links = [
{ name: "Routes", path: "/rails/info/routes" },
{ name: "Database", path: "/rails/db" }, # rails_db gem must be installed
{ name: "ERD", path: "/erd" }, # erd.png must be in the root folder
# etc.
]
end
endThese routes will now appear on every page in your app while in development.
- Pull request and make changes
- Test locally
- Bump
lib/dev_toolbar/version.rb gem build dev_toolbar.gemspecgem push dev_toolbar-X.X.X.gem
Bug reports and pull requests are welcome on GitHub at https://github.com/firstdraft/dev_toolbar.
The gem is available as open source under the terms of the MIT License.