Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The action 'index' could not be found for LoginController
- localhost:3000/login/login
- No route matches [GET] "/login/login"
- Prefix Verb URI Pattern Controller#Action
- GET /:controller(/:action:(/:id))(.:format) :controller#:action
- # config/routes.rb
- # blacklisting - these are not in your controller
- resource :users, exclude: [:show, :destroy], via: [:get, :post]
- # whitelisting - these are in your controller
- resource :users, only: [:index], via: [:get, :post]
- #config/routes.rb
- resource :login, only: [:index], via: [:get, :post]
- match '/login/login' => 'login#login', via: [:get, :post]
- def index
- end
- class LoginController < ApplicationController
- def login
- end
- end
- get 'login/login'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement