Created August 5, 2015 20:03
-
-
Save anonymous/4261cc34b2844fb05da0 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ <div class="col-md-4"> <%= form_for(@user, url: edit_user_path, method: :get) do |f| %> <% if @user.errors.any? %> <div id="error_explanation"> <p><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</p> <ul> <% @user.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :email %><br> <%= f.text_field :email, class: "form-control" %> <br> <%= f.text_field :role, class: "form-control" %> </div> <%= f.submit 'Save user', :class => 'btn btn-primary' %> <%= link_to 'Back', users_path, class: "btn btn-primary" %> <% end %> </div>