You would define those in your view, just as for any other image type. http://apidock.com/rails/ActionView/Helpers/AssetTagHelper/image_tag
Walter
> On May 17, 2016, at 8:04 AM, W. M. <lists@ruby-forum.com> wrote:
>
> Walter Davis wrote in post #1183498:
>> Also look at dragonfly. It does "lazy" resizing, so you upload once,
>> then set the size you want later in the view. Images resized in this
>> manner are cached so you only pay the ImageMagick tax once.
>>
>> Walter
>
> Thanks Walter, I have already installed Dragonfly and it satisfies my
> needs. Yet, I am still wondering how to define title and/or alt
> attributes for the uploaded images. Any ideas? Thank you.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5968243fd3986b5d1ca390fd6ac3e653%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9151CAF9-3362-42D9-B2D0-372D97D62D9B%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment