div into link or div as href in haml

Given this
xyz Some content, etc. Show
How can I make the entire div 'postpreview' function as link to '/forums/post/123'? In haml? Basically this is within a rails partial, and the links are listed as link_to, etc (another issue altogether). I can get the above to work fine in haml, I just cannot turn the entire div into a link without either an error or the output showing up on the page but not linking. I'd like to get rid of the 'Show' link and make the entire postpreview link to the post.

以上就是div into link or div as href in haml的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准