" />
开发者

haml linebreaks

- if @likelist
          You like
          = @likelist.products.size
          products.
          = link_to "Likelist", likelist_path

this results in ugly linebreaks -->

     <div id='likeli开发者_开发技巧st_link'>
        You like
        1
        products.
        <a href="/likelist">Likelist</a>
      </div>

is there a way to get everything in one line?


- if @likelist
  You like #{@likelist.products.size} products. #{link_to "Likelist", likelist_path}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜