First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel
Then ssh with root account, run this in termianl:
$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
require 'active_support/concern' | |
require 'addressable/uri' | |
require 'simpleidn' | |
require 'faraday' | |
# Normalize and validate URLs | |
module Urlable | |
extend ActiveSupport::Concern | |
included do |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
class ApplicationController < ActionController::Base | |
# Prevent CSRF attacks by raising an exception. | |
# For APIs, you may want to use :null_session instead. | |
protect_from_forgery with: :exception | |
def after_sign_in_path_for(resource) | |
root_path | |
end | |
def after_sign_out_path_for(resource_or_scope) |
class PublicController < ApplicationController | |
before_filter :authenticate_user!, :except => [:about] | |
def index | |
@users = User.all | |
end | |
def about |
Ws42::Application.routes.draw do | |
# Root route | |
root to: "public#index" | |
#Routes | |
match "/about", to: "public#about", via: "get" | |
#Auth routes | |
devise_for :users |