Skip to content

Instantly share code, notes, and snippets.

@rilian
rilian / model.txt
Last active March 23, 2017 11:23
structure for rails models
includes
relations
constants
delegate
nested_attributes
before callbacks
after_callbacks
validations
custom validations
scopes
@calebwoods
calebwoods / nginx.conf
Created May 10, 2014 20:18
Sample Nginx config for deployment of Angular.js app
server { listen 80;
server_name example.com;
access_log /var/log/example.com/nginx.access.log;
error_log /var/log/example.com/nginx.error.log;
root /var/www/apps/example.com/public;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
}