PgHero
Add PgHero to your Rails app
Used 41 times
B
Benjamin Darcet
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/VWesJz"
Template Source
Review the code before running this template on your machine.
run "bundle add pghero"
inject_into_file 'app/config/routes.rb', after: 'Rails.application.routes.draw do' do <<~EOF
mount PgHero::Engine, at: "pghero"
EOF
end