<%= form_for @hpsfile, :url => "/cuser/member/file_upload" do |f| %> <%= render :partial => "form", :locals => {:f => f} %> <% end %>