PgHero

Add PgHero to your Rails app
Icons/chart bar
Used 42 times
Created by
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
Comments

Sign up or Login to leave a comment.