SASS Versions of
- Fontawesome 5
- Bootstrap 4
in Phoenix 1.3 and 1.4 via Webpack
| export $(grep -v "^#" .env | xargs) |
| #!/bin/bash | |
| set -x | |
| # Instructions from | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce | |
| # Update the Apt package index | |
| sudo apt-get update | |
| # Install packages to allow apt to use repo over https | |
| sudo apt-get install \ |
SASS Versions of
in Phoenix 1.3 and 1.4 via Webpack
# config/application.rb
# Generators
config.generators do |g|
g.test_framework(false)
g.stylesheets(false)
g.javascripts(false)
g.helper(false)
g.channel(assets: false)| Type | Case | Example |
|---|---|---|
| Controller | Plural | rails g controller Users index show |
| Helper | Plural | rails g helper Users |
| Mailer | Singular | rails g mailer UserMailer |
| Migration | Plural | rails g migration AddEmailToUsers email:string |
| Model | Singular | rails g model User name:string |
| Observer | Singular | rails g observer User |
| Resource | Plural* | resources :users, :only => [:index, :show] |
| Scaffold | Singular | rails g scaffold User name:string |
class Person < ActiveRecord::Base
has_one :address, :as => :addressable
end
class Company < ActiveRecord::Base
has_one :address, :as => :addressable
end
class Address < ActiveRecord::Base| /* File ~/.config/gtk-3.0/gtk.css */ | |
| .titlebar { | |
| color:white; | |
| } | |
| .titlebar:backdrop { | |
| background: #333; | |
| color:#666; | |
| } |
The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.
First the simplest/core layers, then optional layers depending on which features/functionality you want.
Specs |
|
|---|---|
| AUTHOR | Ira Herman |
| LANGUAGE/STACK | Ruby on Rails Version 4 or 5 |
| #!/bin/bash | |
| docker run --name $@ \ | |
| -d \ | |
| -e POSTGRES_PASSWORD=postgres \ | |
| -e POSTGRES_USER=postgres \ | |
| -v $(pwd)/database:/var/lib/postgresql/data \ | |
| -p 5432:5432 \ | |
| postgres:11 |
| tell application "Microsoft Outlook" | |
| set background autodiscover of exchange account "ACCOUNT_NAME" to false | |
| end tell |