Rails 3 routes with non-numeric id's -


I have an object with an ID that does something like "1.3.6.1.4.1.25623.1.0.14377" Appears. When I try to create a link that uses the ID (like link_to my_object (object.id) ), rail 3 barf and say that there is no way to exist.

I've verified that I have a valid path by trying link_to my_object (1)

Any ideas?

Thanks in advance!

I have understood it ... By default, a parameter field (in this case ID) To change this behavior, just add the directions for the obstacles to your root statement: Explain clearly what the parameters should look like in my case it has been found that the following problem has been fixed:

  Resources: nvts ,: constraints => {: id = & gt;    

Blog your most useful blog Thanks for the post.

Comments