Option 1: Follow the conventions and put the new unsaved record in the assistant form_for. You probably already have such an object @mymodelinstalled on newyour controller in your action . So the following snippet should work beautifully:
<%= form_for(@mymodel) do |f| %>
If this does not work, you can set it @mymodelto your action as follows:
class MyModelsController
def new
@mymodel = MyModel.new
end
end
2: URL- :
<%= form_for(:mymodel, :url => create_mymodel_path, :method => :post) do |f| %>