これが初心者の質問である場合は申し訳ありませんが、 User モデルで現在のユーザーの ID をどのように取得したのか疑問に思っていました:
リスト 10.39
何度も何度も読んでみましたが、まだわかりません :(
class User < ActiveRecord::Base
.
.
.
def feed
# This is preliminary. See "Following users" for the full implementation.
Micropost.where("user_id = ?", id)
end
.
.
.
end