我试图构建一个链接。生成的链接应该是这个样子:Rails link_to问题
http://localhost:3000/re_goal/edit/2
这是我想出了:
<%= @issue.re_artifact_properties.collect { |properties| link_to properties.name, re_goal_path()}.to_sentence %>
现在说我可能有暧昧路线。
content_url has the following required parameters: ["projects", :project_id, "re_goal", :id]
但是如果我通过了PROJECT_ID作为一个选项,构建链接看起来是这样的:
http://localhost:3000/projects/1/re_goal/1
不ANY1对如何构建正确的链接的想法?
感谢,
尼科
谢谢。这不完全是解决方案,但你的提示足以让我找到它:) – Nicolas