Advertisement
Guest User

Untitled

a guest
Mar 8th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1. defaults: &defaults
  2. host: localhost
  3. port: 27017
  4. pool_size: 1
  5. timeout: 5
  6.  
  7. development:
  8.   <<: *defaults
  9.  
  10. test:
  11.   <<: *defaults
  12.  
  13. staging:
  14.   <<: *defaults
  15.  
  16. production:
  17.   <<: *defaults
  18.  
  19.  
  20.  
  21. f = File.read("#{Rails.root}/config/mongodb.yml")
  22. yml = YAML.load(f)
  23. TypeError: can't convert String into Hash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement