I have two model Follow user and Master . Follow user can show , edit
Master can add,edit,show and delete follow user .
i need use authenticate_user! for admin add,edit,show and delete
& use authenticate_user! for followuser ,edit,show
before_action :authenticate_user!, except: [:new, :create,:show ,:edit, :destroy] when create new Follow user occur this error
No route matches {:action=>"edit", :controller=>"folusers", :id=>nil}, missing required keys: [:id]
This my routes routes.rb
resources :folusers resources :masters





