Ruby Build a Rails API Authorization and Authentication Route Clean Up

G Johnson
G Johnson
46,427 Points

Please check for error in the tutorial. My answer should have been accepted.

Rails.application.routes.draw do namespace :api do resources :monkeys, only: [:create,:update,:destroy] do resources :bananas, only: [:create,:update,:destroy] end end end

routes.rb
Rails.application.routes.draw do
  namespace :api do
     resources :monkeys, only: [:create,:update,:destroy] do
      resources :bananas, only: [:create,:update,:destroy]
    end
  end
end