<%= 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.
On Aug 31, 12:09 pm, bingo bob [email protected]
wrote:
<%= 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
On Aug 31, 12:32 pm, bingo bob [email protected]
wrote:
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
without the []'s i get this.
undefined method `symbolize_keys!’ for “/resorts/110”:String
?
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).
<%= link_to(image_tag(photo.data.url(:small)),
resort_path(@resort)) %>
On Aug 31, 7:32 am, bingo bob [email protected]