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('[email protected]', :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 [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.