update according to railscast