anchor.diff:        <h4 class="modal-title" id="myModalLabel">更新用户资料</h4>
       </div>
       <div class="modal-body">
  -      <%= form_for(@user_profile,  html: {class: "form-horizontal"}) do |f| %>
  +      <%= form_for(@user_profile,  html: {class: "form-horizontal",role:"form"}) do |f| %>
             <% if @user_profile.errors.any? %>
                 <div id="error_explanation">
                   <h2><%= pluralize(@user_profile.errors.count, "error") %> prohibited this user_profile from being saved:</h2>
  
positive.code:                 </ul>
                </div>
            <% end %>
            <div class="control-group">
              <%= f.label :avatar, class:"control-label" %>
              <div class="controls">
                <%= f.file_field :avatar, placeholder:"头像" %>
              </div>
            </div>
            <div class="control-group">
              <%= f.label :nickname, class:"control-label" %>
              <div class="controls">
                <%= f.text_field :nickname, placeholder:"昵称" %>
              </div>
            </div>
            <div class="control-group">
              <%= f.label :gender, class:"control-label" %>
              <div class="controls">
                <%= f.radio_button :gender,'男',checked:'checked' %>男
                <%= f.radio_button :gender,'女' %>女
                <%= f.radio_button :gender,'其他' %>其他
              </div>
            </div>
            <div class="control-group">
              <%= f.label :location, class:"control-label" %>
              <div class="controls">
                <%= f.select :location, options_for_select(UserProfile::LOCATIONS), {}, {class:"form-control"} %>
              </div>
            </div>
            <div class="control-group">
              <%= f.label :mobile, class:"control-label" %>
              <div class="controls">
                <%= f.text_field :mobile, placeholder:"手机号" %>
              </div>
            </div>
  
negative.code:             <%= f.label :user %><br />
              <%= f.text_field :user_id, value:current_user.id %>
            </div>
            <div class="form-group" style="display: none;">
              <div class="col-sm-10">
                <%= f.submit '更新用户资料', :class=>'btn btn-blue' %>
              </div>
            </div>
  