how can I have in the second line the value of the variable file
instead of both strings file
?
- files.each do |file|
%a(href="test?run=file")click file
how can I have in the second line the value of the variable file
instead of both strings file
?
- files.each do |file|
%a(href="test?run=file")click file
- files.each do |file|
%a(href="test?run=file")
click
= file
=== UPDATED ===
- files.each do |file|
%a(href="test?run=#{file}")
click
= file
or use link_to
instead of %a
- files.each do |file|
= link_to "test?run=#{file}" do
click
= file