thoughtbot's Suspenders makes a fantastic base for any new Rails project, but it's also very opinionated.
Using it, we found ourselves changing elements to suits more our stack.
Thankfully, under the hood, using suspenders
is the same as using rails new
, so it allows us to apply a rails template on top of it, and tweak it to our need.
We found this approach more suitable than maintaining a fork, or asking the lovely guys at thoughbot to comply with our need.
If you're thinking about extending Hebillas, just make sure not to make your change as mandatory, and always ask users if they want the change to be applied.
This template is based to work on top of thoughtbot's Suspenders (v1.37).
Assuming that you have Suspenders installed, you'll need to checkout the repo:
git clone git@github.com:cookieshq/hebillas.git
And then run suspenders, passing the template:
suspenders app_name -m hebillas/template.rb
It will ask you if you want to install certain gems and install them for you, along with other goodies. In the end, it will ask you if you want your database to be migrated.
routes.rb
.This list does not include dependencies of the gems listed!
active_admin
does not yet support Devise 4, if you choose to install it, branch 3 of Devise will be installed. If not, the latest Devise version will be installed._bootstrap-custom.scss
) and js (application.js
) so you can easily comment out any component you won't be using.On the development group:
On the test and development groups:
On the test group:
.gitignore
file with some common files and folders that we add.application.css(.scss)
and application.js
to use bootstrap
.application.rb
to add rspec and action mailer config.development.rb
to add action mailer config.~/tmuxinator/
folder. Keep in mind that it wont install the tmuxinator gem, nor tmux, for you.