Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a model Environment with attributes id, name, something
- I want in json a list of drivers as such: ["tst", "stg", "prod"]
- collection Environment.all, :root => false, :object_root => false
- attributes :name
- Yields: [{"name":"tst"},{"name":"stg"},{"name":"prod"}]
- How do I fix this?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement