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

Add answers as nested resources for questions
user
```ruby
Rails.application.routes.draw do
  root 'questions#index'
  resources :questions do
    resources :answers, only: [:new, :create]
  end
end
```
assistant