#Toolbelt $ heroku login Enter email + password
$ heroku create
check git configuration $ git config -e
deploy the code from local branch "master"
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=4.0 |
http://railsapps.github.io/what-is-ruby-rails.html |
Install postgresql on Mountain Lion | |
https://gist.github.com/demimismo/3359506 | |
> brew install postgresql | |
> initdb /usr/local/var/postgres -E utf8 | |
> mkdir -p ~/Library/LaunchAgents | |
> cp /usr/local/Cellar/postgresql/9.2.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ | |
> launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
To start postgres manually |
https://github.com/xaviershay/rspec-fire |
http://guides.railsgirls.com/devise/ |
Rails scaffolding types | |
These types are valid since Rails version 2: | |
string | |
text (long text, up to 64k, often used for text areas) | |
datetime | |
date | |
integer | |
binary | |
boolean |
psql -d template0 -c 'create extension hstore;' |
https://github.com/engageis/activerecord-postgres-hstore |
# An abstract base class used to create simple serializers | |
# for ActiveRecord objects | |
class BaseSerializer | |
include Rails.application.routes.url_helpers | |
attr_reader :serialized_object | |
def initialize(serialized_object) | |
@serialized_object = serialized_object | |
end |
#Toolbelt $ heroku login Enter email + password
$ heroku create
check git configuration $ git config -e
deploy the code from local branch "master"