title: ActiveModel::ForbiddenAttributesError while creating a new entry
body: <p>I am new to Ruby on Rails and I was trying to create a simple app when I ended up having a <code>ActiveModel::ForbiddenAttributesError</code></p>
  
  <pre><code>class PostsController &lt; ApplicationController
  def index
      @posts = Post.all       
  end
  
  def show
      @post = Post.find(params[:id])
  end
  
  def new
      @post =Post.new
  end
  
  def create
      @post = Post.new(params[:post])
      if  @post.save
          redirect_to post_path,:notice=&gt;"success"
      else
          render "new"
      end
  end
  
  def edit
  end
  
  def update
  end
  
  def destroy
  end
  
  private
      def post_params
        params.require(:post).permit(:Title, :content)
      end
  
  end
  </code></pre>
  
  <p>I have seen a similar error <a href="https://stackoverflow.com/questions/17335329/activemodelforbiddenattributeserror-when-creating-new-user">here</a> but the solution for that did not fix my issue.</p>
  
  <p>My version of rails is 4.2.0.</p>
  
  <p>The error displayed is </p>
  
  <p><img src="https://i.stack.imgur.com/zmvUj.png" alt="enter image description here"></p>