Guest User

Untitled

a guest
Jul 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. # the following statement works
  3. RAILS_DEFAULT_LOGGER.debug " category[:name] = #{category[:name]}"
  4.  
  5. # while, this generates a "Exception: You have a nil object when you didn't expect it!" error
  6. RAILS_DEFAULT_LOGGER.debug " category.name = #{category.name}"
  7.  
  8. # If I comment out the previous statement - everything works
Add Comment
Please, Sign In to add comment