Form_for and partials

I’m getting an error in the partial when i try

<% form_for :name do |form| %>

<%= render_partial “#{@current_stage}” %>

<% end %>

So I assume that form_for does not have scope in the partial?

If that is the case what are my solutions…

Do I have to stick a <% form_for in every partial, or do i just change
my inputs back to text_field instead of form.text_field, and just use a
standard start_form_tag in the outer rhtml file?

You can do this:
<%= render :partial => @current_stage, :locals => { :form => form } %>

This will allow you to do form.text_field, etc., in your partial.

Benjamin C. – Collaborative test case management – Resources for the Rails community