Module: FacebookSocialPlugins::Helper::View
- Defined in:
- lib/facebook-social_plugins/helper/view.rb
Instance Method Summary collapse
- #fb_activity(namespace, action) ⇒ Object
- #fb_analytics(app_id) ⇒ Object
- #fb_logout_button(options = {}) ⇒ Object
- #fb_root ⇒ Object
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 content_tag :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 content_tag :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 = {} content_tag :a, '', {:id => 'fb_logout_and_reload', :href => '#'}.merge([:html] || {}) do content_tag(:img, '', :id => 'fb_logout_image', :src => "/assets/fb_logout_#{[:size] || :small}.gif", :alt => "Facebook Logout").html_safe end end |
#fb_root ⇒ Object
3 4 5 |
# File 'lib/facebook-social_plugins/helper/view.rb', line 3 def fb_root content_tag :div, '', :class => "fb-root" end |