workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with the same name as the keys in <tt>filtering_params</tt> | |
| # with their associated values. Most useful for calling named scopes from |
| <div class="page"> | |
| <header class="banner"> | |
| <p>Banner</p> | |
| </header> | |
| <nav class="pagenav"> | |
| <p><a href="#">Page Nav</a></p> | |
| </nav> | |
| <main class="main"> | |
| <aside class="summary"> | |
| <p>Summary</p> |
A codepen port of the color-schemer Compass plugin: https://github.com/Team-Sass/color-schemer
Forked from Scott Kellum's Pen Color-Schemer.
A Pen by Mike Hacker on CodePen.
| waxing poetic |
A Pen by Mike Hacker on CodePen.
A Pen by mudit jain on CodePen.
| sudo sh -c " | |
| wget -nv -O - https://packagecloud.io/gpg.key | apt-key add - | |
| echo 'deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main' | tee /etc/apt/sources.list.d/dokku.list | |
| apt-get update -qq > /dev/null | |
| apt-get install sigil -t trusty # We're using the Ubuntu 14.04 package ;) | |
| apt-mark hold sigil | |
| wget https://raw.githubusercontent.com/dokku/dokku/master/bootstrap.sh | |
| bash bootstrap.sh | |
| " |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[es6-fetch]"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| body { | |
| background: #f5f5f5; |