I am very new to RoR and am learning using the Agile Web Development
with Rails referece. I am slowly creating the Depot application and
have a problem setting up an image to act as a hyper link.
The code snippt I specifically have a problem with is
This code looks a bit wrong... You don't need to use the output tags (<%= %>) in that string. In fact, it shouldn't be a string at all in this case. This should work fine:
Inside the <%= and %> you are using ruby code. What
you have effectively done here is tried to firstly put a string literal
into the image_tag method. The you’ve used an erb escape inside
ruby script. The good news is you don’t need to do this
I imagine that if you looked at your source you would find something like