given this route

match 'posts/hello/:name/:title' => 'post#show', :as => :hello
  • what are the ways that I can call hello_path ?

  • if i call hello_path(@post), what does it try to do?

I was hoping that the :name and :title files will bind to the path automatically but it seems that rails only know how to get the :id out of the model object.

instead, it only works if I call it like

<%= link_to "link2", hello_url(:name=> @post.name, :title=>@post.title) %>

(lack of proper documentation is really killing me)

Edit
Report