Last active
December 11, 2015 19:59
-
-
Save tigawa/4652623 to your computer and use it in GitHub Desktop.
ruby rails サンプルデータの登録
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
#seeds.rb | |
Product.delete_all | |
Product.create(title: 'Programming Ruby 1.9', | |
description: | |
%{<p> | |
Ruby is the fastest growing and | |
</p> | |
}, | |
imge_url: 'ruby.jpg', | |
price: 49.95) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実行
rake db:seed