> so in render_partial, case FormBuilder does render :partial => "#
> {f.object.class}/_form.format.erb", :object => f (apologies for
> pseudoness of code) ?Yeah, that's what I've been doing, and depending on the implementation required it seems like it should be ok... I can see mislav's point on coupling, but it seems consistent with the current behaviour where: render :partial=>@foo -> /foos/_foo.html.erb > As long as you don't have more than one form per model that you want > easily accessible (and even if you did have that I suppose that falls > under the general 'make the common case easy etc...', as it's not > that bad having to type out the :object if you do have some > complicated nesting/set of form partials. > > Fred > > > > -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
