How to make a single-layered path or route in ruby on rails
I’m new to Ruby on Rails, and I’m wondering if it is possible to create a single-layered path name in Rails.
How to make a single-layered path or route in ruby on rails
I’m new to Ruby on Rails, and I’m wondering if it is possible to create a single-layered path name in Rails.
How to make a single-layered path or route in ruby on rails
I’m new to Ruby on Rails, and I’m wondering if it is possible to create a single-layered path name in Rails.
Rails Routing – ‘api/v1/sessions’ is not a supported controller name
Rails.application.routes.draw do namespace :api do namespace :v1 do resources :users, only: [:create, :show, :index] post ‘/login’, to: ‘sessions:#create’ delete ‘/logout’, to: ‘sessions#destroy’ get ‘/logged_in’, to: ‘sessions#is_logged_in?’ # resources :sessions end end end I’m not sure what’s wrong with my routes. I even tried changing post ‘/login’ to post ‘/api/v1/login’ but that didn’t work either. When […]