Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Ruby library for the Disqus commenting API and Javascript widgets.
Ruby
Tree: 978b2bb860

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README.textile
disqus.gemspec
init.rb

README.textile

Disqus Ruby Gem

The Disqus Gem helps you easily integrate the Disqus
commenting system into your website. It works for any site programmed in Ruby,
not just Rails.

Get it

gem install norman-discus —source http://gems.github.com

Use it:

Show the comment threads:


  # Loads the commenting system
  <%= Disqus::Widget::thread(:account => "example") %>
  
  # Appends the comment count to a end of link text for a url that ends with
  # #disqus_thread. For example:
  # <a href="http://my.website/article-permalink#disqus_thread">View Comments</a>
  <%= Discus::Widget::show_comment_count %>

Show the combo widget:


  <%= Disqus::Widget::combo(:account => "example", :color => "blue",
    :hide_mods => false, :default_tab => "popular", :num_items => 25) %>

Hack it:

Github repository: http://github.com/norman/disqus

Complain about it:

norman@randomba.org

Learn more about Disqus:

http://disqus.com

Copyright © 2008 Norman Clarke, released under
the MIT license

Something went wrong with that request. Please try again.