Render action from another controller

I would like to have one page staying the same all the time, and have
actions being included with Ajax. On the main page I have a div used for
the purpose of adding forms belonging to other models than the current
main controller and layout. Is this possible? I can render the form but
only if I exclude the fields, why? I use fields like:

<%= text_field ‘othermodel’, ‘test’ %>

My form action points to create in that other model.

<%= 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 M. 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.