rails link_to video not working -
i had line of code in html.erb file in static folder:
<a href="<%= video['link'] %>" role="tab" data-toggle="tab"><%= video['caption'] %></a>
i changed to:
<%= link_to video['link'], video['caption'], role: 'tab', data: { toggle: 'tab' } %>
now video not loading , caption showing url of video. can tell me what's going on here.
thanks.
i figured out:
you change to:
<%= link_to video['caption'], video['link'], role: 'tab', data: { toggle: 'tab' } %>
Comments
Post a Comment