Skip to content

Instantly share code, notes, and snippets.

View bazzel's full-sized avatar

Patrick Baselier bazzel

  • Oisterwijk, The Netherlands
View GitHub Profile
@bazzel
bazzel / README.md
Last active December 13, 2019 16:06
Rails 6 and Daemonite's Material UI

Daemonite's Material UI is a cross-platform and fully responsive front-end interface based on Google Material Design developed using Bootstrap 4. This gist describes how to integrate this into a Rails 6 application.

First setup Bootstrap 4 as descrided in this gist.

$ yarn add daemonite-material

Heroku

Create multiple environments:

$ heroku create --remote [env]

# example
$ heroku create --remote staging
@bazzel
bazzel / README.md
Last active December 6, 2019 07:38
Simply create Material-like forms in Rails with Simple Form
# config/initializers/carrier_wave.rb
CarrierWave.configure do |config|
  storage =
    case Rails.env
    when 'staging', 'production'
      :fog
    else
      :file
    end
@bazzel
bazzel / README.md
Last active January 4, 2022 12:18
Connect local Rails to a Postgres in Docker

Connect local Rails to a Postgres in Docker

(reference)

  1. Install Docker:
brew install docker # or brew install homebrew/cask/docker
  1. Start PG in a container: