search for: battle_controller

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

2006 May 09
3
What does this mean?
def cas casses = [@cas.ss,@cas.s,@cas.xl,@cas.l,@cas.m,@cas.w,@cas.xw] casses.each do |cas| if cas >= 10 @user.send(cas) -= 1 @user.save! end end my error: app/controllers/battle_controller.rb:383: parse error, unexpected tOP_ASGN, expecting kEND @user.send(cas) -= 1 ^ app/controllers/battle_controller.rb:388: parse error, unexpected $, expecting kEND -- Posted via http://www.ruby-forum.com/.