© 2012 - 2017 thoughtbot, inc. Upcase, the design of a robot, and thoughtbot are registered trademarks of thoughtbot, inc.
Around 18:00 in the video, you use before_filter but I get an error in Rails 5, and some research on Stack Overflow seems to indicate that the before_filter syntax is deprecated in Rails 5.0, to be removed in 5.1. The new syntax is before_action.
At 22:29 min in the video, I make that change and @user = User.find_by(username: params[:id]) but the error that i get undefined methodshouts’ for nil:NilClasson the next line@shouts = @user.shouts` AnyIdea why? @bg-scro
@user = User.find_by(username: params[:id])
on the next line