Monday, December 19, 2011

Git Walkthrough

I made a new project and added some files that were temporary (swap files, and ~ files) and I need to remove them.

First I want to get all files currently added

git log --pretty=format: --name-status | cut -f2- | sort -u
Then removing it is simply

git rm filename

Friday, December 2, 2011

Capabara Spec Commands

visit url_path()
visit action_url_path()
save_and_open_page
page.find_button

Command List

rake routes
rake routes | grep search_field
rake databases:create
bundle exec <command>
RAILS_ENV=test bundle exec rake db:migrate
RAILS_ENV=development bundle exec rake db:migrate

self.instance_variables