我正在使用鏈接到項目的方法。下面的代碼是有缺少必需的鍵:[:id] rails 4
project = Project.new
project.id = value["id"]
project.name = value["project_name"]
<td width="20%" class="left"><%= link_to_project(project) %></td>
錯誤
No route matches {:action=>"show", :controller=>"projects", :id=>#<Project id: 2343, name: " TESTING", description: nil, homepage: "", is_public: false, parent_id: nil, created_on: nil, updated_on: nil, identifier: nil, status: 1, lft: nil, rgt: nil, inherit_members: false, product_backlog_id: nil, default_version_id: nil>} missing required keys: [:id]
我得到這個錯誤它不工作。我不知道如何解決這個問題。但鐵軌3.2工作正常。
有沒有解決方案... – Vikiesakki