0

Why do I keep getting an error here:

    <%= link_to image_tag user.photo.url(:watch), user_path(user) %>

Error: undefined method `symbolize_keys!' for "/users/4":String

Thanks!

4

1 回答 1

1

Try:

<%= link_to image_tag(user.photo.url(:watch)), user_path(user) %>
于 2012-04-16T06:34:36.647 回答