Rails routes singular resources


#1

In the rails routing guide it gives examples of singular resources in the form:
“get ‘profile’, to: ‘users#show’”

however in the rails tutorials we’ve used several singular resources omitting the to: section. How does the route know what controller to go to then?

eg.
get ‘static_pages/about’