I receive this error with my contact form in rails:
First argument in form cannot contain nil or be empty
View:
It can depend on where your new or create action is defined. I had the same issue, turned out i had to put the @Object = object.new command inside the page method.
For example..
class PagesController < ApplicationController
def home
@applicant = Applicant.new
end
def about
end
def homeowner
end
end
I before defined a "new" and "create" method and had the action in them which is usual and i do in other instances. Still don't know why.