clearing warning in log

<%= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) %>

and i get this warning...

warning: parenthesize argument(s) for future version

it works but with the warning.

All i'd like to do is just a link_to to show a photo and link to a
bigger version.

<%= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) %>

and i get this warning...

warning: parenthesize argument(s) for future version

it's saying it wants image_tag(...). You probably don't want the []

Fred

without the []'s i get this.

undefined method `symbolize_keys!' for "/resorts/110":String

?

without the []'s i get this.

undefined method `symbolize_keys!' for "/resorts/110":String

?

You shouldn't if you parenthesize things the way it wants you to.

Fred

<%= link_to(image_tag(photo.data.url(:small)),
                    resort_path(@resort)) %>

You got it, thanks. Posting another cron type rake question in next 5
mins. Would appreciate any thoughts on it! Most annoying (stopping me
getting my backups done).