I need to return to my Rails view more than one variable from method... But how could i do this?
For example now i have
def my1
@price = 1
@price
end
but how could i also return other valuem somethin like:
def my1
@qnt = 2
@price = 1
@price, @qnt
end
?
Also my idea is to split them to string like
@price + "/-/" + @qnt
and then just split them via /-/ in view.... But this is a bad practice... So how could i get from one method two or more variables?