Answers for "resources rails"

1

get and to rails

@patient = Patient.find(params[:id])
Posted by: Guest on July-16-2020
0

rails resources only

resources :controller_name, only: [:create, :new]
Posted by: Guest on December-08-2020
0

resources rails

resources :name_of_your_controller
Posted by: Guest on November-05-2020
0

rails resources

resources :controller_name # => new create edit update index show destroy

resources :controller_name, only: [:index, :new, :create, :edit, :update]
# <=>
resources :controller_name, except: [:destroy, :show]
Posted by: Guest on December-08-2020
0

rails resources

get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12
Posted by: Guest on January-19-2021

Browse Popular Code Answers by Language