Account Info

<%= text_field_tag "email", params[:email] %>
<%= password_field_tag "password1", params[:password1] %>
<%= password_field_tag "password2", params[:password2] %>
<%= render :partial => "account/personal_info", :locals => {:f => f} %> <% if @app_profile -%> <% form_for("app_profile", @app_profile) do |profile_form| %> <%= render :partial => "account/#{@app_profile.class.name.tableize.singularize}", :locals => {:f => profile_form}%>

<%= submit_tag "Complete registration" %>

<% end %> <% else -%>

<%= submit_tag "Complete registration" %>

<% end -%>