Help us understand the problem. What is going on with this article?

私も画像が投稿できるWebアプリを作りたい。その3

More than 1 year has passed since last update.

1.写真アップ用のファイルをつくる

$ rails g uploder Image

結論:
[Lv.1]
とりあえず「post」に
実装していく。

[Lv.2]
できたら自分のやりたいようにカスタマイズ!!

app/models/post.rb

mount_uploader :image, ImageUploder
               ②   ③

①「私は画像を投稿したい"マウント"」宣言
②(post.rbの)imageカラムに
③「写真をアップ(保存)していきます」

つづく

oyaken0717
https://mobile.twitter.com/oyaken0717
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away