我想包在我的Rails應用程序圍繞李的鏈接,我想下面將工作:包裝LINK_TO周圍Rails的內容
3210但它產生下面的HTML:
<a href="/projects/206">
</a>
<li>
<a href="/projects/206"></a>
<div class="remix-list-image">
<a href="/projects/206"></a>
<a href="/projects/206"><img alt="Preview_2013-06-18_08.25.02" class="img-polaroid" src=""></a>
</div>
<div class="remix-list-title"><a href="/projects/206">Video Test Remix</a> by <a href="https://stackoverflow.com/users/tiff">tiff</a>
</div>
</li>
我希望它這樣做如下:
<a href ="/projects/206">
<li>...</li>
</a>
我在做什麼錯?
可能重複的[如何將鏈接\ _to圍繞一些html ruby代碼?](http://stackoverflow.com/questions/1086360/how- do-i-wrap-link-to-around-some-html-ruby-code) – givanse