Guest User

Untitled

a guest
Jan 14th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.25 KB | None | 0 0
  1. CSV.foreach(file.path, col_sep: ';', headers: true) do |row|
  2.   contactrow = row.to_hash
  3.  
  4.   logger.debug row.to_hash.keys.first.encoding
  5.   logger.debug "name".encoding
  6.  
  7.   if row.to_hash.keys.first == "name"
  8.     logger.debug "hallo!@#"
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment