<% if @user.avatar? %> <%= image_tag(@user.avatar.thumb.url) %> <% else %> <%= image_tag "person.png" %> <% end %> <%#= file_field_tag 'file' %> <%#= hidden_field_tag :avatar_cache %> Choose a file... <%= f.text_field :email %> <%= f.select :active_role, @user_role_models.sort_by{|role| role.key }.collect {|role| [ role.key.capitalize, role.key ]}, :selected => (@user.active_role || 'student') %>
<% @user_info_models.each do |ua| %>

<%= ua.key.capitalize %>


<%= render :partial => 'user_attribute', :object => (@user.user_infos.detect {|u| u.key == ua.key } || @user.user_infos.build), :locals => {:ua => ua, :type => 'info'} %>
<% end -%>
<% @user_role_models.each do |ua| %> <% end -%>
<% content_for :page_specific_javascript do %> <% end -%>