title: Can't redirect to a path?
body: <p>I'm trying to redirect to the answer path.</p>
  
  <p>After creating a comment, I have this path</p>
  
  <pre><code>class CommentsController &lt; ApplicationController
      def create
          @question = Question.find(params[:question_id])
          @answer = Answer.find(params[:answer_id])
          @comment = @answer.comments.new(params[:comment])
          @comment.writer = current_user.username
          @comment.save
              redirect_to question_answer_url
      end
  end
  </code></pre>
  
  <p>However, I get that  No route matches {:action=>"show", :controller=>"answers"}. However, I definitely have this method in my answers controller</p>
  
  <pre><code>def show
      @question = Question.find(params[:question_id])
      @answer = Answer.find(params[:id])
      @comment = @answer.comments.new(params[:comment])
  end
  </code></pre>
  
  <p>I've also tried redirect_to question_answer_path([@question, @answer]), however, that isn't working either as it says no route matches (I assume maybe that's too much information?).</p>
  
  <p>I've nested my resources in my routes such as they go as follows question-->answer-->comment</p>
  
  <p>I'm wondering why my redirects aren't working. </p>