Railsのモデルの仕組み
自作お出かけアプリのモデルのファイルを見てみる
code:app/models/place.rb
class Place < ApplicationRecord
end
空だ…!
save メソッド、 all メソッドが使えるのはなぜ?
ApplicationRecord クラスを継承しているため
date memo weather といった要素をどこで知るか
データベースから情報を得られる