[Rails] Re: gravatar_image_tag
The gravatar_image_tag gem has a configuration point for setting your
own default image rather then using the Gravatar default.
You can do it inline like so:
gravatar_image_tag('junk@email.com', :gravatar => { :default =>
'http://example.com/images/your.png' })
Or you configure it globally in an initializer
# config/initilizers/gravatar_image_tag.rb
GravatarImageTag.configure do |config|
config.default_image = 'http://example.com/images/your.png'
end
Refer to the README for more information
https://github.com/mdeering/gravatar_image_tag
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home