Created
June 27, 2015 12:04
-
-
Save Yama-to/6bfb53dc02dcd4dce2b9 to your computer and use it in GitHub Desktop.
覚えておくと幸せになれるActiveRecord::Relationメソッド6選 ref: http://qiita.com/Yama-to/items/4696e9d43ebec6012129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
book_data = {title: "Frozen", author: "Charles Dickens"} | |
book_review = {rate: 10, review: "Awesome!"} | |
book_data.merge(book_review) | |
# => {title: "Frozen", author: "Charles Dickens", rate: 10, review: "Awesome!"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment