Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defaults: &defaults
- host: localhost
- port: 27017
- pool_size: 1
- timeout: 5
- development:
- <<: *defaults
- test:
- <<: *defaults
- staging:
- <<: *defaults
- production:
- <<: *defaults
- f = File.read("#{Rails.root}/config/mongodb.yml")
- yml = YAML.load(f)
- TypeError: can't convert String into Hash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement