Modular rails 5.1+ application template
Switch branches/tags
Nothing to show
Clone or download

Wise -`ღ´- Stack

Wise-stack is a modular Rails 5.1+ application template focused on Ruby developing best practices.

Wise-stack aims to provide a customizable stack of recipes for the template. It always install the gem latest version obtained from, so you don't have to bother to have the template up-to-date


git clone /path/to/wise-stack
rails new [APPLICATION_NAME] -T -m /path/to/wise-stack/template.rb


  • modular recipes
  • produces explicit gem version on Gemfile, to avoid breaking changes on code in case of gem updates (see: rubygems guides
  • automatically install latest versions of gems
  • avoids garbaging of Gemfile for indipendent tools (like rubocop and html2slim)
  • updates automatically system gem tools (rubocop, html2slim)
  • uses Slim as template laguange
  • testing with Rspec and Factory Girl
  • best practices tools:
    • overcommit
    • rubocop integration
  • common developing tools:
  • security tools:
  • testing tools:
  • customizations:
    • git gitignore that properly ignores security sensitive files
    • rails overwrites for a more clean and secure scaffolding

Special notes on recipes

  • rails_overwrites:

    • disables scaffold stylesheets, assets, helpers and json from scaffolding
    • sets quiet assets
    • removes application.css and install a blank application.scss in favor of scss syntax
  • rubocop:

    • uses user ~/.rubocop.yml for configuration. If the configuration is not present, the recipe will download this rubocop configuration on the root of the project
    • a rubocop autocorrection will be executed on the project after bundle
  • slim-rails

    • all views will be automatically converted to slim using html2slim
  • secure_headers

    • a basic configuration is provided. Remember to review secure_headers initializers before going to production