Module: FacebookSocialPlugins::Helper::View

Defined in:
lib/facebook-social_plugins/helper/view.rb

Instance Method Summary collapse

Instance Method Details

#fb_activity(namespace, action) ⇒ Object



11
12
13
# File 'lib/facebook-social_plugins/helper/view.rb', line 11

def fb_activity namespace, action
	 :div, '', :class => "fb-activity", :'data-actions' => "#{namespace}:#{action}"
end

#fb_analytics(app_id) ⇒ Object



7
8
9
# File 'lib/facebook-social_plugins/helper/view.rb', line 7

def fb_analytics app_id
	 :meta, '', :property => "fb:admins", :content => app_id
end

#fb_logout_button(options = {}) ⇒ Object



21
22
23
24
25
# File 'lib/facebook-social_plugins/helper/view.rb', line 21

def fb_logout_button options = {}
	 :a, '', {:id => 'fb_logout_and_reload', :href => '#'}.merge(options[:html] || {}) do
		(:img, '', :id => 'fb_logout_image', :src => "/assets/fb_logout_#{options[:size] || :small}.gif", :alt => "Facebook Logout").html_safe
	end
end

#fb_rootObject



3
4
5
# File 'lib/facebook-social_plugins/helper/view.rb', line 3

def fb_root
	 :div, '', :class => "fb-root"
end