Report abuse


			
#very rudimentary version to get you started

<%= link_to_function("cancel", nil, :id => "about_me_edit_button") do |page| page[:about_me].toggle page[:about_me_form].toggle end %>

About Me

<%= error_messages_for :profile %> <% remote_form_for :profile, :url => user_profile_path(@current_user), :html => {:method => :put} do |f| %>

Country
<%= f.text_field :country %>

Birthday
<%= f.date_select :birthday %>

Gender
<%= f.check_box :gender %>

Education
<%= f.text_field :education %>

Job
<%= f.text_field :job %>

Politics
<%= f.text_field :politics %>

Religion
<%= f.text_field :religion %>

Statement
<%= f.text_area :statement %>

Expertise
<%= f.text_field :expertise_id %>

Photography
<%= f.text_area :photography %>

User
<%= f.text_field :user_id %>

<%= f.submit "Update" %>

<% end %>
<% end %>
<%= link_to_function("Edit", nil, :id => "about_me_edit_button") do |page| page[:about_me].toggle page[:about_me_form].toggle end %>

About Me

Country: <%=h @profile.country %>

Birthday: <%=h @profile.birthday %>

Gender: <%=h @profile.gender %>

Education: <%=h @profile.education %>

Job: <%=h @profile.job %>

Politics: <%=h @profile.politics %>

Religion: <%=h @profile.religion %>

Statement: <%=h @profile.statement %>