title: undefined method error "reputation_value_for" in activerecord reputation system
body: <p>I'm new to rails and I want to create voting to posts in my application. I have been following the railscasts episode of activerecord-reputation-gem. <a href="http://railscasts.com/episodes/364-active-record-reputation-system" rel="nofollow">http://railscasts.com/episodes/364-active-record-reputation-system</a></p>
  
  <p>I am facing the error == Undefined method error reputation_value_for</p>
  
  <p>I had downloaded the gem from </p>
  
  <ul>
  <li>gem 'activerecord-reputation-system', github:
  'NARKOZ/activerecord-reputation-system', branch: 'rails4'</li>
  </ul>
  
  <p>my post.rb is</p>
  
  <pre><code>    class Post &lt; ActiveRecord::Base
  has_many :comments
  belongs_to :cubestudent
  
  validates_presence_of :body, :title, :subject
  has_reputation :votes, source: :cubestudent, aggregated_by: :sum
      end
  </code></pre>
  
  <p>cubestudent.rb</p>
  
  <pre><code>   class Cubestudent &lt; ActiveRecord::Base
     # Include default devise modules. Others available are:
      # :confirmable, :lockable, :timeoutable and :omniauthable
       devise :database_authenticatable, :registerable,
       :recoverable, :rememberable, :trackable, :validatable
        has_many :evaluations, class_name: "RSEvaluation", as: :source
       has_many :posts, :dependent =&gt; :destroy
       has_many :comments, :dependent =&gt; :destroy
         has_reputation :votes, source: {reputation: :votes, of: :posts}, aggregated_by: :sum
  
  
        def voted_for?(post)
         evaluations.where(target_type: post.class, target_id: post.id).present?
          end
  
        end
  </code></pre>
  
  <p>posts.controller</p>
  
  <pre><code>  class PostsController &lt; ApplicationController
    before_action :set_post, only: [:show, :edit, :update, :destroy]
  
    def create
    @post = Post.new(post_params)
     @post.postedby = current_cubestudent.email
      @post.postedbyid = current_cubestudent.id
  
      respond_to do |format|
    if @post.save
      format.html { redirect_to @post, notice: 'Post was successfully created.' }
      format.json { render action: 'show', status: :created, location: @post }
    else
      format.html { render action: 'new' }
      format.json { render json: @post.errors, status: :unprocessable_entity }
    end
     end
     end
  
    def destroy
    @post.destroy
    respond_to do |format|
    format.html { redirect_to posts_url }
    format.json { head :no_content }
     end
    end
  
     def new
     @post = Post.new
      end
  
     def index
     @posts = Post.find_with_reputation(:votes, :all, order: "votes desc") 
  
     end
  
    def show
     end
  
     def edit
     end
  
     def update
      respond_to do |format|
       if @post.update(post_params)
      format.html { redirect_to @post, notice: 'Post was successfully updated.' }
      format.json { head :no_content }
       else
      format.html { render action: 'edit' }
      format.json { render json: @post.errors, status: :unprocessable_entity }
      end
      end
     end
  
     def  vote
       value = params[:type] == "up" ? 1 : -1
         @post = Post.find(params[:id])
         @post.add_or_update_evaluation(:votes, value, current_cubestudent)
         redirect_to :back, notice: "Thank you for voting"
         end
  
  
  
  
  
     private
        # Use callbacks to share common setup or constraints between actions.
       def set_post
      @post = Post.find(params[:id])
       end
  
       # Never trust parameters from the scary internet, only allow the white list through.
        def post_params
       params.require(:post).permit(:title, :body, :subject)
           end
       end
  </code></pre>
  
  <p>_post.html.erb</p>
  
  <pre><code>     &lt;h4 class="timeline-title"&gt;&lt;%= link_to_unless_current post.title, post %&gt;&lt;/h4&gt;
    &lt;p&gt; Created : &lt;%= post.created_at.strftime("%d/%m/%Y") %&gt; by &lt;%= post.postedby %&gt;
  &lt;/p&gt;
   &lt;%= simple_format post.body , :class =&gt; "timeline-body"%&gt;
   &lt;%= pluralize post.reputation_value_for( :votes).to_i, "vote" %&gt;
   &lt;% if current_cubestudent &amp;&amp; !current_cubestudent.voted_for?(post) %&gt;
   &lt;%= link_to "up", vote_post_path(post, type: "up"), method: "post" %&gt;
   &lt;%= link_to "down", vote_post_path(post, type: "down"), method: "post" %&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>I'm not able to identify why this error coming ,can anyone help me ??
  Thanks in advance</p>
  
  <p>my gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '4.0.0'
  gem 'cancan'
  gem 'devise'
  gem 'kaminari'
  gem 'twitter-bootstrap-rails'
  gem 'pg'
  gem 'activerecord-reputation-system', github: 'NARKOZ/activerecord-reputation-system', branch: 'rails4'
  #gem 'paperclip', :git =&gt; "git://github.com/thoughtbot/paperclip.git"
  #gem 'activeadmin', github: 'gregbell/active_admin'
  
   # Use SCSS for stylesheets
   gem 'sass-rails', '~&gt; 4.0.0'
  
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  
  # Use CoffeeScript for .js.coffee assets and views
  gem 'coffee-rails', '~&gt; 4.0.0'
  
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  
  # Use jquery as the JavaScript library
  gem 'jquery-rails'
  
  # Turbolinks makes following links in your web application faster. Read more:   https://github.com/rails/turbolinks
  gem 'turbolinks'
  
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 1.2'
  
  group :doc do
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', require: false
  end
  
  # Use ActiveModel has_secure_password
  # gem 'bcrypt-ruby', '~&gt; 3.0.0'
  
   # Use unicorn as the app server
  # gem 'unicorn'
  
  # Use Capistrano for deployment
  # gem 'capistrano', group: :development
  
  # Use debugger
  # gem 'debugger', group: [:development, :test]
  </code></pre>