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 Curtis
http://www.bencurtis.com/
http://www.tesly.com/ -- Collaborative test case management
http://www.agilewebdevelopment.com/ -- Resources for the Rails community
On Aug 5, 2006, at 3:38 AM, Alex Moore wrote:
> 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 all my inputs back to text_field instead of form.text_field,
> and just use a standard start_form_tag in the outer rhtml file?
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060805/2a6935c5/attachment.html