#very rudimentary version to get you started
<div id="about_me_form">
<%= link_to_function("cancel", nil, :id => "about_me_edit_button") do |page|
page[:about_me].toggle
page[:about_me_form].toggle
end %>
<h3>About Me</h3>
<%= error_messages_for :profile %>
<% remote_form_for :profile, :url => user_profile_path(@current_user), :html => {:method => :put} do |f| %>
<p>
<b>Country</b><br />
<%= f.text_field :country %>
</p>
<p>
<b>Birthday</b><br />
<%= f.date_select :birthday %>
</p>
<p>
<b>Gender</b><br />
<%= f.check_box :gender %>
</p>
<p>
<b>Education</b><br />
<%= f.text_field :education %>
</p>
<p>
<b>Job</b><br />
<%= f.text_field :job %>
</p>
<p>
<b>Politics</b><br />
<%= f.text_field :politics %>
</p>
<p>
<b>Religion</b><br />
<%= f.text_field :religion %>
</p>
<p>
<b>Statement</b><br />
<%= f.text_area :statement %>
</p>
<p>
<b>Expertise</b><br />
<%= f.text_field :expertise_id %>
</p>
<p>
<b>Photography</b><br />
<%= f.text_area :photography %>
</p>
<p>
<b>User</b><br />
<%= f.text_field :user_id %>
</p>
<p>
<%= f.submit "Update" %>
</p>
<% end %>
</div>
<% end %>
<div id="about_me">
<%= link_to_function("Edit", nil, :id => "about_me_edit_button") do |page|
page[:about_me].toggle
page[:about_me_form].toggle
end %>
<h3>About Me</h3>
<p>
<b>Country:</b>
<%=h @profile.country %>
</p>
<p>
<b>Birthday:</b>
<%=h @profile.birthday %>
</p>
<p>
<b>Gender:</b>
<%=h @profile.gender %>
</p>
<p>
<b>Education:</b>
<%=h @profile.education %>
</p>
<p>
<b>Job:</b>
<%=h @profile.job %>
</p>
<p>
<b>Politics:</b>
<%=h @profile.politics %>
</p>
<p>
<b>Religion:</b>
<%=h @profile.religion %>
</p>
<p>
<b>Statement:</b>
<%=h @profile.statement %>
</p>
</div>