Module: FbRails::Integration::ActionView
- Defined in:
- lib/fb_rails/integration/action_view.rb
Instance Method Summary collapse
Instance Method Details
#fbml(tag, content = '', options = {}) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/fb_rails/integration/action_view.rb', line 8 def fbml(tag, content = '', = {}) if content.is_a?(Hash) = content content = '' end content_tag("fb:#{tag}", content, ) end |
#include_facebook_javascript(options = {}) ⇒ Object
4 5 6 |
# File 'lib/fb_rails/integration/action_view.rb', line 4 def include_facebook_javascript( = {}) render [:async] ? 'fb/async_js' : 'fb/blocking_js' end |