Browse files

Fixed save to CSV issue.

  • Loading branch information...
1 parent 2339772 commit 7f7a7ac77a26fa1629452571a6f1265be20c0ca7 @mikesea committed Mar 19, 2012
Showing with 7 additions and 3 deletions.
  1. +6 −2 attendee.rb
  2. +1 −1 queue.rb
View
8 attendee.rb
@@ -52,11 +52,15 @@ def full_name
end
def first_name
- dirty_first_name.capitalize
+ if dirty_first_name
+ dirty_first_name.split.collect{ |n| n.capitalize }.join(" ")
+ end
end
def last_name
- dirty_last_name.capitalize
+ if dirty_last_name
+ dirty_last_name.capitalize
+ end
end
def zipcode
View
2 queue.rb
@@ -102,7 +102,7 @@ def self.valid_params?(params)
elsif params[0] == "print"
params.count == 1 || (params[1] == "by" && params.count == 3 )
elsif params[0] == "save"
- params[1] == "to" && param.count == 3
+ params[1] == "to" && params.count == 3
else
true
end

0 comments on commit 7f7a7ac

Please sign in to comment.