title: Wrong arguments (1 for 2)
body: <p>I'm trying to create a admin approval page for my posts and so far I have got the button and looking at another post I've updated my controllers to update_attributes. However when I click the approval button I get </p>
  
  <blockquote>
    <p>wrong number of arguments (1 for 2)</p>
  </blockquote>
  
  <p>Here is where the problem is:</p>
  
  <pre><code>   def approve
      @book = Book.find(params[:id])
       if @book.update_attribute(approved: true)
      redirect_to active_book_path
    else
     render root_path
    end 
  end
  end 
  </code></pre>
  
  <p>Any ideas on why this is happening?</p>