title: Rails: how do params work in controller?
body: <p>I'm wondering how params work in rails. So I have a questions controller. The first action new means that I call upon the create new function for a model Question right? 
  But once we get into the create, I'm a little confused. What does the new(params[:question]) get for us? And also in the show, what does finding by params[:id] do? I believe params is sent by the view with information stored inside it?
          def new
          @question = Question.new
      end</p>
  
  <pre><code>def create
      @question = Question.new(params[:question])
      if @question.save
          redirect_to @question
      else
          render 'new'
      end
  end
  
  def show
      @question = Question.find(params[:id])
  end
  </code></pre>