Rails: Check output of path helper from console -


Defines a bunch of magic with routes called rail that make your routes helpful. Sometimes, with the nested routes in particular, the route help method given to you can be a little confusing to know about the URL of the URL for the call. Is it possible, using Ruby Console, see if someone has given What will the linked support function do? For example, the designated assistant looks like a post_path (post), I want to see how the URL is generated.

You can show them directly from rake routes .

In a Rail Console, you can call app.post_path . This will work in the rail ~ = 2.3 and> = 3.1.0


Comments