community 2
モデル作り
User Post Like Comment Profile
railsでモデルを作る rails g model post
rails db:migrate
コントローラーも rails g controller posts ←複数形
7つのアクションを入れまっせー index show new edit create update destroy
config routes.rbにresources を入れて全部入るんやでー。
あっ、パラムズも忘れずに!
それでviewで表すために postディレクトリーにnew.html.erbを作る!その中にform_withを作って投稿できるようにする!