Displaying 1 result from an estimated 1 matches for "this_type".
Did you mean:
has_type
2006 May 12
1
Some error about adding.
Ok so I''m trying to make a little exchange 3 for 1 of 1 higher rank here
is the code in the controller:
def exch_link
@id = @session[:user].id
@type = @params[:type]
exch(@id,@type)
end
def exch(user_id,this_type)
@user = User.find(:condtions => "id = " + user_id)
@ranks = ["xw","w","m","l","xl","s","ss"]
if @user.send(this_type) >= 3
@this_type = @ranks.index(this_type)
@nexts_number = @this_type.to_i + 1
@next_type =...