Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Petergate Authorizations

January 18, 2015

"If you like the straight forward and effective nature of Strong Parameters and suspect that cancan might be overkill for your project then you'll love Petergate's easy to use and read action and content based authorizations."

-- I proclaim optimistically

Installation

Petergate Authorizations

My vimrc

November 12, 2012

" " ========================================================================
" " Isaac Sloan - Vim Configuration 2012
" " ========================================================================
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'

" My bundles
Bundle 'ervandew/supertab'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-haml'
Bundle 'slim-template/vim-slim'
My vimrc

Setting up MiniTest for a Rails 4 App

October 03, 2014

Getting started is easy!

Add this code:

Gemfile

gem "minitest-rails", github: "blowmage/minitest-rails"
gem "minitest-reporters"

application.rb

config.generators do |g|
  g.test_framework :minitest, spec: true, fixture: true
  g.helper false
  g.view_specs false
end

$> rails g minitest:install

test_helper.rb

Rails.env = "test"
Setting up MiniTest for a Rails 4 App

Deploying a Rails Application

September 18, 2014

Setting up servers.

  • Follow this guide or clone from another instance that is setup this way.

Deploying to staging.

  • Don't merge feature branches into develop until all tests pass and you're sure it works.
  • Test develop branch and push to staging.
    • Run cap staging depoy
    • Test staging.

Deploying to production.

Deploying a Rails Application

Setting up an Ubuntu 13.04 Server for Rails

May 25, 2013

Step 1: Install Ubuntu

Step 2: Add a deploy user

sudo adduser deploy

Step 3: Update and Install dependencies

Make sure that each line completes before running the next. Don't just copy the lines in all at once or it will use the beginning letters of one line as an answer to questions the first may ask.

sudo apt-get -y update && sudo apt-get -y upgrade
Setting up an Ubuntu 13.04 Server for Rails