Displaying 2 results from an estimated 2 matches for "gametrad".
Did you mean:
gametrade
2012 Mar 10
4
undefined local variable or method '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
g = GameTrade.game_interest(user, game)
g.deliver
format.html { redirect_to root_url }
format.json { render json: @game }
end
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...
2012 Mar 09
2
ActionMailer message delivery content
I have the ability to send email to a user if a certain user has
requested interest in their product. In my email I want to include
certain information that is pulled from users but at the moment I am
getting errors because it states that they are undefined despite these
lines being used elsewhere in my application. I shall copy the email
below and anything between the <% %> is what I wish