<div id="min_profile">
  <%= error_messages_for :user_profile %>
  <% form_remote_for :user_profile,
                    :url => { :controller => "user_profiles", :action => "create" },
                    :update => { :success => 'songs', :failure => 'new_user_profile' } do |f| -%>


  <h1>Create your personal profile!</h1>
  <%= hidden_field :user_profile, :user_id, :value => session[:user_id] %>
  <p>
    <%= f.label :first_name %><br />
    <%= f.text_field :first_name %>
  </p>
  <p>
      <%= f.label :last_name %><br />
      <%= f.text_field :last_name %>
  </p>
  <p>
    <%= f.label :gender %><br />
    <%= f.select( "gender", { "Male" => "male", "Female" => "female"}) %>
  </p>
  <p>
    <%= f.label :genre_preferances %><br />
    <%= f.text_field :genre_pref %>
  </p>
  <p>
    <%= f.label :bio %><br />
    <%= f.text_area :bio %>
  </p>

    <p><%= submit_tag "Create Profile!" %></p>

  
  <% end %>

</div>


