Forgive me if this is a newb question but I was wondering how they got the current user's id in the User model here:
Listing 10.39
I've tried reading it again and again and i still can't figure it out :(
class User < ActiveRecord::Base
.
.
.
def feed
# This is preliminary. See "Following users" for the full implementation.
Micropost.where("user_id = ?", id)
end
.
.
.
end