<%= text_field 'othermodel', 'test' %>
Do you get any errors?
if you render this, then you should have assigned an attribute like @othermodel = Othermodel.new
<%= text_field 'othermodel', 'test' %>
Do you get any errors?
if you render this, then you should have assigned an attribute like @othermodel = Othermodel.new
Thorsten Mueller wrote:
<%= text_field 'othermodel', 'test' %>
Do you get any errors?
if you render this, then you should have assigned an attribute like @othermodel = Othermodel.new
I think I found the error. I had a submit instead of a submit_tag. It works now, at least I get the form to render.