RampUp/dev-sprint7 — pull request #1 by siddtewari (2013-03-15 18:34:49+00:00)
Title: Use IRB

Thanks for the comparison examples and the exercises. Here are some observations that might help others:

Observation #1

For part 3 of the README.md, there should be an instruction/tip to use IRB right before this statement:

require '~/devrampup/week7/example_ruby_scripts.rb'

A possible replacement:

Type IRB at the command prompt to launch the Interactive Ruby Shell. Then enter the following command, though replace the command path with the absolute path to the directory where the example ruby scripts file lives:
require '~/devrampup/week7/example_ruby_scripts.rb'

Observation #2

Not sure if these commands were meant to be tried out - they give the following error messages:

1.9.3p327 :017 > name = params['name']

1.9.3p327 :017 > name = params['name']
NameError: undefined local variable or method `params' for main:Object
from (irb):17
from /usr/local/bin/irb:12:in `

'

1.9.3p327 :018 > Blog.posts.where(‘author.name = ?’, name)

1.9.3p327 :018 > Blog.posts.where(‘author.name = ?’, name)
NameError: uninitialized constant Blog
from (irb):18
from /usr/local/bin/irb:12:in `

'