← Back to Upcase

Rails Helpers

(Upcase ) #1

© 2012 - 2017 thoughtbot, inc. Upcase, the design of a robot, and thoughtbot are registered trademarks of thoughtbot, inc.

This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/intermediate-rails-5

(Brett) #2

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.

(Alwan Mortada) #3

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