#Toolbelt $ heroku login Enter email + password
$ heroku create
check git configuration $ git config -e
deploy the code from local branch "master"
... | |
import com.cloudconsulting.Main.R; | |
public class Main extends CordovaActivity | |
{ | |
@Override | |
public void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
super.init(); |
onDeviceReady: function() { | |
if(window.device && parseFloat(window.device.version) >= 7.0){ | |
//$("footer").css("padding-bottom","20px"); | |
document.body.style.marginTop = "20px"; | |
// jQuery | |
$(".container").css("margin-top","20px"); | |
// pure JS | |
document.getElementsByClassName('container')[0].setAttribute('style', 'margin-top: 20px'); | |
} | |
app.receivedEvent('deviceready'); |
#Toolbelt $ heroku login Enter email + password
$ heroku create
check git configuration $ git config -e
deploy the code from local branch "master"
# 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 |
https://github.com/engageis/activerecord-postgres-hstore |
psql -d template0 -c 'create extension hstore;' |
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 |
http://guides.railsgirls.com/devise/ |
https://github.com/xaviershay/rspec-fire |
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 |