Rails.application.routes.draw do
  resources :questions
end

Rails.application.routes.draw do
  root 'questions#index'
  resources :questions do
    resources :answers, only: [:new, :create]
  end
end

Add answers as nested resources for questions
Add answers as nested resources for questions
