adds images to anwers

This commit is contained in:
rgarcia
2017-10-04 21:42:57 +02:00
parent 24fc7ab70a
commit 1cf9bc4ad1
10 changed files with 166 additions and 3 deletions

View File

@@ -301,7 +301,10 @@ Rails.application.routes.draw do
end
resources :questions do
resources :answers, only: [:new, :create], controller: 'questions/answers'
resources :answers, only: [:new, :create], controller: 'questions/answers', shallow: true do
resources :images, controller: 'questions/answers/images'
end
end
end