On 2014-Nov-10, at 16:17 , Dave Castellano 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.
On Monday, November 10, 2014, Dave Castellano wrote:
I am getting the error:
> undefined method `symbolize_keys' for "/contents/index_books/13":String
>
> for the following:
>
> <%= link_to(image_tag src= asset_path("#{subject.icon}" + '.png'),
> index_books_path(:subject_id => subject.id)) %>
Hi,
I am getting the error:
undefined method `symbolize_keys' for "/contents/index_books/13":String
for the following:
<%= link_to(image_tag src= asset_path("#{subject.icon}" + '.png'),
index_books_path(:subject_id => subject.id)) %>
I understand that a hash is expected and a string is being f
3 matches
Mail list logo