Module: Livefyre::Helpers
- Defined in:
- lib/livefyre/helpers.rb
Overview
View helpers for Livefyre
Instance Method Summary (collapse)
-
- (String) livefyre_comments(id, title, link, tags = nil, options = {})
Add a Livefyre comment form to this page.
Instance Method Details
- (String) livefyre_comments(id, title, link, tags = nil, options = {})
Add a Livefyre comment form to this page.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/livefyre/helpers.rb', line 14 def livefyre_comments(id, title, link, = nil, = {}) = (id, title, link, ) .merge!( :id => "livefyre_comments", :data => { :checksum => [:checksum], :collection-meta" => [:collectionMeta], :site-id" => [:siteId], :article-id" => [:articleId], :network => Livefyre.client.host, :root => Livefyre.config[:domain] } ) content_tag(:div, "", ) end |