search for: game_interest

Displaying 1 result from an estimated 1 matches for "game_interest".

2012 Mar 10
4
undefined local variable or method 'game'
I am doing a web shop assignment and have got a problem with my action mailer. I get an error undefined local variable or method ''game'' I have the following in my mailer: def game_interest(user, game) @user = user @game = Game mail :to => user.email, :subject => "Game Interest" end and the following in my controller: def email @game = Game.find(params[:id]) respond_to do |format| user = @game.user email = user.email...