我在rails中的联系人表单中收到此错误:
First argument in form cannot contain nil or be empty
View:
<%= form_for @contact do |f| %>
and so on.......
Controller
def new
@contact = Contact.new
end
and so on....
我发现了相关的错误,但没有一个解决方案适合我的特定问题.有什么线索可以说明是什么原因造成的吗?