On 25 Sep 2007, at 23:12, Joe Noon wrote:
>
> Isn't this what :object => f is for?
>
> <% form_for :person, @person, :url => {...} do |f| %>
> <%= render :partial => 'fields', :object => f
> <% end %>
>
It's just a bit of convenience - neither <render :partial =>
'fields', :object => f nor <%= render :partial => 'fields', :locals
=> {'f' => f} are very nice, compared to just "render :partial =>
form" as one can do with form_tag
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---