$ url_for [Project]
=> projects_url
$ url_for [:new, Project]
=> new_projects_url
$ url_for [:new, Project, :test]
=> new_project_test_url
$ url_for [:new, Project, nil]
=> new_projects_url
我觉得url_for [:new, Project, :test]
特别有趣:这里project
是奇异的!
任何人都知道如何new_project_url
从像这样的数组生成(或路径)[:new, Project]
?