Return has_many association's field as an array
@result.map! &:ingredient_id
Written by Leon Guan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#