rails slim very simple questions -


i'm new slim , there little things don't understand , don't find answers in documentation.

  1. linebreak - how can add @ end of line? example:

    <%= name %><br/>

    <%= address %><br/>

  2. how can combine pure html , ruby on same line? example:

    <p>new building <% if building.ownver %> <%= owner %><% end %></p>

i know, must have missed there no real tutorial out there.

btw, there no emulator convert erb slim?

thanks.

you can use converter html slim here's a link!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -