Connoisseurs! I ask the help to understand a syntactic problem. I have such a construction in DOM:
<%= image_tag('play.svg', alt: "Rails logo", class: "play#{index+1}") %> and I have a variable:
<%= album_info.album %> Task. Assign constructions id whose value would be the given variable.
My thoughts:
<%= image_tag('play.svg', alt: "Rails logo", class: "play#{index+1}", id: <%= album_info.album %>) %> gives a spelling error.
<%= image_tag('play.svg', alt: "Rails logo", class: "play#{index+1}", id: "<%= album_info.album %>") %> gives a spelling error.
How is it all right?