Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| - if Rails.env.development? | |
| :css | |
| .translation_missing{ | |
| color: red; | |
| } |
| source 'https://rubygems.org' | |
| gem "github_api" | |
| gem "highline" |
| module Abilities | |
| def self.ability_for(user) | |
| if user.admin? | |
| AdminAbility.new(user) | |
| else user | |
| MemberAbility.new(user) | |
| else | |
| GuestAbility.new | |
| end | |
| end |
| # This Rack middleware helps solving the issue with some Rails versions which do not accept | |
| # a '*/*;q=0.6' and their variants 'Accept' request header. This header is particularly used | |
| # by Google Bot, and if Rails doesn't like it, it will return a 500 or 406 error to Google Bot, | |
| # which is not the best way to get your pages indexed. | |
| # | |
| # References: | |
| # - http://stackoverflow.com/questions/8881756/googlebot-receiving-missing-template-error-for-an-existing-template | |
| # - https://github.com/rails/rails/issues/4127 | |
| # | |
| class GoogleBotAware |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // Mixins --------------------------------------------------------------- | |
| =placeholder-style | |
| color: #777 | |
| // add your defaults here. | |
| // if you need more than one style-group you can either create several mixins, | |
| // or just name the style-groups and take a single style-group-name argument. | |
| =apply-placeholders | |
| &::-webkit-input-placeholder |