Giter Club home page Giter Club logo

disqus_rails's Introduction

disqus_rails

Build Status

This gem provides:

  • Ansynchronous Disqus discussion integration into your Rails project

Requirements

  • Rails 3.1 or later

Installation

Add the disqus_rails gem to your Gemfile

gem 'disqus_rails'

And run bundle install

Getting Started

Set the disqus_shortname variable (will raise an exception if it has not been set)

DisqusRails.disqus_shortname = 'my-staging-site'

Additional variables/configurations may be set also, please refer to Disqus documentation

DisqusRails.disqus_identifier = 'my-identifier'
DisqusRails.disqus_title = 'my-disqus_title'
DisqusRails.disqus_url = 'my-disqus_url'

Then embedding the disqus_tag into your view

<%= disqus_tag %>

Acknowledgements

  • Disqus for bringing about a nice cloud platform for discussion/comment system integration
  • Norman Clarke for inspiring me the idea of this gem. (He also wrote a gem on Disqus, but for synchronous Disqus API)

Contributing

Pull requests are more than welcome. Before submitting pull requests, please make sure your changes are covered with tests.

Copyright (c) 2011-2013 Thach Chau. Released under the MIT license

disqus_rails's People

Watchers

 avatar

disqus_rails's Issues

undefined method `disqus_shortname='

/Users/me/code/myapp/config/initializers/disqus.rb:1:in `<top (required)>': undefined method `disqus_shortname=' for DisqusRails:Module (NoMethodError)

This error came from my config/initializers/disqus.rb file:

DisqusRails.disqus_shortname = 'my-shortname'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.