Let\'s say that I have a model called Tweet with the following fields
It's because where returns a collection not a single object
So instead of
@tweet = Tweet.where(id: 64)
You want
@tweet = Tweet.find(64)
because you're using the id