JumpstartLab/curriculum — pull request #86 by arn-e (2012-03-21 06:21:41+00:00)
Title: Update source/projects/eventmanager.markdown

#### Proposed change 1 [Iteration 3, Step 1] :

Original :
`Write an if condition that checks if @file.lineno is equal to zero`

Problem :
@file.lineno is never equal to zero (starts at 2)

Revision :
`Write an if condition that checks if @file.lineno is equal to 2`

#### Proposed change 2 [Iteration 5, Step 1] :

Original :
` custom_letter = letter.gsub("#firstname",first_name)`
`custom_letter = custom_letter.gsub("#lastname",last_name)`

Problem :
1. Unless first_name and last_name are declared beforehand, an "undefined local variable" exception will be thrown. If following the convention used elsewhere in the Event Manager, the user should access the CSV contents using `line[:header_symbol]`.
2. Minor typo - the HTML markers contain underscores (first_name, last_name vs. firstname, lastname)

Revision :
`custom_letter = letter.gsub("#first_name","#{line[:first_name]}")`
`custom_letter = custom_letter.gsub("#last_name","#{line[:last_name]}")`