Skip to content

Instantly share code, notes, and snippets.

Installation

For this workshop we'll need to create and setup a closed development environment using Vagrant and VirtualBox. Once this environment is up and running, we'll install the following components:

  • Git
  • RVM
  • Ruby 2.1.0
  • Node.js 0.10

VirtualBox Setup

@mixellent
mixellent / gist:5667905
Last active December 17, 2015 20:29
Grape API question
Q: If you had the following API method:
@mixellent
mixellent / gist:3834681
Created October 4, 2012 16:15 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private
@mixellent
mixellent / invitation.rb
Created June 1, 2012 15:56
Caching issue for user upon performing POST action async
class Invitation < ActiveRecord::Base
belongs_to :sender, :class_name => 'User'
has_one :recipient, :class_name => 'User'
end