resource rails code example
Example 1: get and to rails
@patient = Patient.find(params[:id])
Example 2: rails resources only
resources :controller_name, only: [:create, :new]
Example 3: resources rails
resources :name_of_your_controller
@patient = Patient.find(params[:id])
resources :controller_name, only: [:create, :new]
resources :name_of_your_controller