Skip to content

Instantly share code, notes, and snippets.

@samotarnik
samotarnik / devise.sl.yml
Created December 19, 2012 15:16
devise 2.1.2, slovenian translations
sl:
errors:
messages:
expired: "je potekel, prosimo zahtevajte novega"
not_found: "ni bil najden"
already_confirmed: "je že potrjen, prosimo poskusite se prijaviti"
not_locked: "ni bil zaklenjen"
not_saved:
one: "1 napaka preprečuje, da bi se podatek %{resource} shranil:"
two: "2 napaki preprečujeta, da bi se podatek %{resource} shranil:"
@tansengming
tansengming / configure.rb
Created July 9, 2012 07:37
Ruby configure blocks
# How Clearance / Hoptoad does it
module Clearance
class << self
attr_accessor :configuration
end
def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end
@shapeshed
shapeshed / nginx_rails_3_1
Created October 10, 2011 19:13
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {