Fixed user deletion via User Admin console
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<th><%= user.created_at.to_s(:datetime).downcase %></th>
|
||||
<th><%= user.updated_at.to_s(:datetime).downcase %></th>
|
||||
<th><%= button_to "Edit", edit_user_path(user), :class => 'btn', :method => "get" %></th>
|
||||
<th><%= button_to "Delete", user, :method => :delete, :confirm => "Are you sure?", :class => 'btn btn-danger', :method => "get" %></th>
|
||||
<th> <%= button_to "Delete", user, :action => "destroy", :confirm => "Are you sure?", :method => :delete, :class =>'btn btn-danger' %> </th>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user