View layer:
<%= thumbnail_tag (@content_page.picture1), :border => 0, :width => 489,
:height => 236 %>
Helper layer:
def thumbnail_tag(picture, options = {})
link_to(scale_image_tag(picture, options.merge({:border => 0})),
"/settings/view_image/#{picture.id}", :popup => ["_blank",
"width=#{picture.width+15},height=#{picture.height + 10}"])
end
Can someone help me diagnose this problem?
> wrong number of arguments (2 for 0)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.