On 10 November 2014 21:17, Dave Castellano <[email protected]> wrote:
> Dave Aronson wrote in post #1162130:
>>
>>
>> Try fixing the "src=" bit. That's HTML, not Ruby.
>>
> <%= link_to(image_tag asset_path("#{subject.icon}" + '.png'),
> index_books_path(:subject_id => subject.id)) %> still throws same error.
I suspect you are passing index_books_path() as a second parameter to image_tag.
>
> <%= image_tag asset_path("#{subject.icon}" + '.png') %> works fine so I
> am assuming its the link_to and not the image_tag.
A wrong assumption I think
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtay%2BS%3DcdioX5fr%3Dv6StRosD%3D%3DP_V6mhKDuo%2B4%2BWgkU%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.