module SocialButterfly::Rails::ActionViewExtension
Public Instance Methods
facebook_share_button_url(content={}, options={})
click to toggle source
# File lib/social_butterfly/rails/action_view_extension.rb, line 4 def facebook_share_button_url(content={}, options={}) content = { :text => '' }.merge(content) options = { }.merge(options) SocialButterfly::Services::FacebookService.share_button_url(content, options) end
google_plus_share_button_url(content={}, options={})
click to toggle source
# File lib/social_butterfly/rails/action_view_extension.rb, line 10 def google_plus_share_button_url(content={}, options={}) content = { :text => '' }.merge(content) options = { }.merge(options) SocialButterfly::Services::GooglePlusService.share_button_url(content, options) end
twitter_share_button_url(content={}, options={})
click to toggle source
# File lib/social_butterfly/rails/action_view_extension.rb, line 16 def twitter_share_button_url(content={}, options={}) content = { :text => 'Check this out -- ' }.merge(content) options = { :via => '' }.merge(options) SocialButterfly::Services::TwitterService.share_button_url(content, options) end