Answers for "get route rails"

2

check current route rails

current_uri = request.env['PATH_INFO']
Posted by: Guest on March-12-2021
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