RailsCasts Pro episodes are now free!

Learn more or hide this

Ben Pellow's Profile

GitHub User: workingBen

Site: http://www.campuscred.com

Comments by Ben Pellow

Avatar

I had this issue as well. Move the code into a helper and you'll be good to go. Sorry if that's outdated but if anyone else google's this at least they have an answer.