visit('/projects')
visit(comments_path)
visit(post_comments_path(post))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Quicksilver [5115] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: ß61 (3900) | |
Code Type: X86 (Native) | |
Parent Process: launchd [258] | |
Date/Time: 2012-03-08 11:00:51.379 -0800 | |
OS Version: Mac OS X 10.7.3 (11D50b) | |
Report Version: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This page's URL http://bit.ly/PB5ptc | |
$ git clone git://github.com/cczona/railsbridge-docs.git | |
$ cd railsbridge-docs/sites/workshop | |
$ bundle install | |
$ gem install rerun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Bash shell prompt with RVM and Git info ### | |
### REQUIRES git-prompt.sh provided with Git ### | |
# $ cp git-prompt.sh ~/.git-prompt.sh | |
# $ echo source ~/.git-completion.sh >> ~/.bashrc | |
# in ~/.bashrc | |
BLACK="\e[30m" | |
RED="\e[31m" | |
GREEN="\e[32m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Gemfile ## | |
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
group :development, :test do | |
gem 'sqlite3' | |
gem 'rspec-rails' | |
gem 'guard-rspec' | |
gem 'listen', github: 'guard/listen', branch: 'polling/double' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
@user.errors[:email].should include("is invalid") # check for the error format message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom prompt. Based on <https://gist.github.com/4652812> by Zachary Scott | |
IRB.conf[:PROMPT][:PERSONAL] = IRB.conf[:PROMPT][:RVM].merge( | |
:PROMPT_I => "\n#{RUBY_VERSION} >> ", | |
:PROMPT_S => "%l >> ", | |
:PROMPT_C => "? >> ", | |
:RETURN => "RETURNS> %s\n\n" | |
) | |
IRB.conf[:PROMPT_MODE] = :PERSONAL | |
Big thank you to Lynn Root for starting this document! Email: Lynn Root
- Lynn Root's Blog with her experience, how she prepared, and lists of practice problems and resources.
- Stephanie Shupe's presentation White Boarding: Interview Tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Pythonista’s Essential Travel Guidebook to Ruby’s Shorelines | |
For the coder accustomed to Pythonic ways, stepping into the world of Ruby is justifiably puzzling. Is the real documentation hidden or something? What's up with all the dogma? How do I learn to do things in accepted Ruby fashion? Do I really need to adhere to all these conventions, anyway...? Which Ruby groups, conferences, and docs are most approachable for the polished Pythonista who voyages into this foreign land? | |
We'll cover Ruby community essentials: code practices, culture, religious convictions, memes, lore, influential voices, and spiritual leaders. You'll find out why the #pairwithme hashtag is always where to gravitate. And we'll delve into the deepest of existential questions: why is the why of _why so darned fascinating? | |
Warning: explanations contained herein require foxes, cat pictures, and exactly two spaces. |