title: NoMethodError in PostsController#create
body: <p>Forgive my ignorance but I am brand new not only to Ruby but programming in general.  I am working through the example on edge guides at rubyonrails.org. and am receiving the following error and despite reviewing every piece of code I've typed since the app last worked I am unable to fix it.  </p>
  
  <blockquote>
    <p>NoMethodError in PostsController#create</p>
    
    <p>undefined method `permit' for {"title"=>"",
    "text"=>""}:ActiveSupport::HashWithIndifferentAccess</p>
  </blockquote>
  
  <p>And this is what my posts_controller.rb looks like:</p>
  
  <pre><code>class PostsController &lt; ApplicationController
    def new
      @post = Post.new
    end
  
    def create
      @post = Post.new(params[:post].permit(:title, :text))
  
      if @post.save
        redirect_to action: :show, id: @post.id
      else
        render 'new'
      end    
    end
  
    def show
      @post = Post.find{params[:id]}
    end  
  
    def index
      @posts = Post.all
    end        
  end
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you in advance for any help!</p>