I am following the tutorial on learning the basics of the API, and I'm having trouble configuring it. This is what I did:
Rails.application.routes.draw do namespace :api, constraints: {format: :json} do resources :kittens end end
The error I get when visiting / api / kittens
Unable to autoload constant API::KittensController, expected /media/Volume.II/Dropbox/Web Development/odin-project/3. Ruby on Rails/odin-kittens/app/controllers/api/kittens_controller.rb to define it Extracted source (around line
Any help would be really appreciated. Thanks.
source share