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
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:
| Q: If you had the following API method: |
| class PostsController < ActionController::Base | |
| def create | |
| Post.create(post_params) | |
| end | |
| def update | |
| Post.find(params[:id]).update_attributes!(post_params) | |
| end | |
| private |
| class Invitation < ActiveRecord::Base | |
| belongs_to :sender, :class_name => 'User' | |
| has_one :recipient, :class_name => 'User' | |
| end |