To add to that, here is the scale_image_tag helper method:
def scale_image_tag(picture, options = {})
if picture
# raise options.to_yaml
image_tag(picture.url(options[:width], options[:height]),
options.merge({:alt => picture.image_alt, :title => picture.image_alt}))
else
image_tag("clear.gif", options)
end
end
--
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.