###htmlタグで書かれとものをrailsヘルパーで書き換えたいです。
<a href="https://player.vimeo.com/video/130929787?autoplay=1" class="sngl-main-play video"><img src="img/icon-play.png" width="92">Play Video</a>
となっているものを、link_toとimage_tagでrailsように書き換えたいのですが上手く行きません。
###試したこと
以下のコードで試してみました。
<%= link_to 'Play Video', image_tag('/assets/sample1.png', width='92'), class: "sngl-main-play video", "#{@content_with_frame}?autoplay=1" %>
ちなみに、
@content_with_frame = https://player.vimeo.com/video/130929787?
となっています。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/07/16 10:29