Some content, etc. ShowHow 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前端其它相关文章！