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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -