<%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %>

<%= labelled_form_for @project do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %>