@John , I had the same problem as you did, NoMethodError (undefined method `find' for Symbol:Class):
I figured out the problem, eventually.
You need to change the authentication from find_or_create_by_xx to just find_by_xx , as you aren't creating it until the if statement. It's fairly easy to miss this in the railscast, it happens very quickly.
@John , I had the same problem as you did, NoMethodError (undefined method `find' for Symbol:Class):
I figured out the problem, eventually.
You need to change the authentication from find_or_create_by_xx to just find_by_xx , as you aren't creating it until the if statement. It's fairly easy to miss this in the railscast, it happens very quickly.