ruby on rails - How can I add two variables on one line in HAML? -
i'm trying modify haml code , output 2 different variables on same line. how can achieve this?
%h3= @level.name " $" @level.price
ideally, want output in format: individual $35
any appreciated.
thanks!
%h3= "#{@level.name} $#{@level.price}"
Comments
Post a Comment