0

Near the start of this page...

http://guides.rubyonrails.org/routing.html

... there's an example involving @patient (section 1.2).

I'd like to know how to determine where the following line points:

<%= link_to 'Patient Record', patient_path(@patient) %>

What about the list generated by rake routes correlates to this?
How do I know which http verb is used?

EDIT

I'd like to add that pointing me to 'rake routes' will not explain it for me. I have checked my list of routes many times.

I'd like to know how, in the example on the URL above, I would know where the link_to line points. It seems like the list of routes is significant, but HOW does it correlate with the patient_path line? What am I missing?

moosefetcher
  • 1,841
  • 2
  • 23
  • 39

1 Answers1

1

This should give you the answer:

bundle exec rake routes | grep patient

About HTTP verb, url helpers only determine path/url, they don't determine HTTP method.

Marek Lipka
  • 50,622
  • 7
  • 87
  • 91