$ rails g model User
belongs_to
has_one
# 현재 가장 잘 동작하는 버전인듯 | |
# postgres는 설치했다고 가정하자. | |
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
# 환경변수에 LC_COLLATE=C 이거 있는지 확인 | |
def user_params | |
+ accessible = [ :name, :email ] # extend with your own params | |
+ accessible << [ :password, :password_confirmation ] unless params[:user][:password].blank? | |
+ params.require(:user).permit(accessible) | |
+ end |
#Rails Request.env Variables | |
SERVER_NAME | |
PATH_INFO | |
REMOTE_HOST | |
HTTP_ACCEPT_ENCODING | |
HTTP_USER_AGENT | |
SERVER_PROTOCOL | |
HTTP_CACHE_CONTROL | |
HTTP_ACCEPT_LANGUAGE | |
HTTP_HOST |
$ brew install ansible # OSX
$ [sudo] pip install ansible # elsewhere
(these are merely ideas, not a concrete plan on where Mina is headed from now!)
There are many tools available for app deployment, but they can all use some form of improvement.
Minimal time logs tracker. Runs on Node.js. Features:
Friction-free time logging. Just type t shopping in the grocery
to
start a task.
Everything in the terminal. It's a Node.js command-line app that runs anywhere Node can. (even Windows!)
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |