Skip to content

Instantly share code, notes, and snippets.

View ryanthames's full-sized avatar

Ryan Thames ryanthames

  • Spring Solutions
  • Fort Worth, Texas
View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)