- Devise: Devise uses Rails views, so I have the user management separate from the Ember app.
- haml-rails
- hamlbars
| require 'strong_parameters' | |
| class ActiveRecord::Base | |
| include ActiveModel::ForbiddenAttributesProtection | |
| end | |
| class ActionController::Base | |
| # Use this with CanCan's load_resource to permit a set of params before | |
| # it tries to build or update a resource with them. |
| ## | |
| # Make Rack look like node. | |
| # | |
| # http://youtu.be/Zp91yUH-zAw | |
| # | |
| # Run like this: | |
| # | |
| # $ unicorn -I. app.ru | |
| require 'node_adapter' |
| require "rubygems" | |
| require "octokit" # gem install octokit | |
| 1.upto(5) do |page| | |
| Octokit.repositories("railscasts", page: page, per_page: 100).each do |repo| | |
| system "git clone git://github.com/railscasts/#{repo.name}" | |
| end | |
| end |
| body { | |
| background-color: #7A060C; | |
| } | |
| #wrapper { | |
| width: 90%; | |
| margin: 200px auto; | |
| } | |
| h1 { |
| body { | |
| background-color: #FFF; | |
| } | |
| #wrapper { | |
| width: 90%; | |
| margin: 200px auto; | |
| } | |
| h1 { |
| .shadow-stuff { | |
| -moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| -webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| } | |
| .container { |
| .bended-shadow { | |
| position: relative; | |
| width: 500px; | |
| margin: 200px auto; | |
| } | |
| .bended-shadow::before, .bended-shadow::after { | |
| content: ''; | |
| position: absolute; | |
| width: 60%; |
| .border-container { | |
| width: 28%; /* border will be on the left on this container */ | |
| float: right; | |
| overflow: hidden; /* only needed if floating container */ | |
| min-height: 600px; /* static height if you want your container to be taller than its content */ | |
| -moz-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF; | |
| -webkit-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF; | |
| box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF; | |
| border-width: 0 0 0 1px; | |
| -webkit-border-image: |