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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -