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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -