Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

image_tag inside link_to => undefined method `symbolize_keys!' for "auth/facebook":String

I think I'm missing a little something here ... the it's a simple image inside a link. The code :

<%= link_to image_tag "facebook.png", "auth/facebook" %>

The error is : undefined method 'symbolize_keys!' for "auth/facebook":String

What'd I do wrong here ?

like image 906
Marcel Falliere Avatar asked Nov 05 '10 10:11

Marcel Falliere


1 Answers

This is because you're passing the args to the wrong methods:

<%= link_to (image_tag ("facebook.png", "auth/facebook")) %>

Oh, why would you ever want to do this?

like image 65
Jacob Relkin Avatar answered Oct 21 '22 06:10

Jacob Relkin