Fixed user deletion via User Admin console
This commit is contained in:
1 parent
f3ef2292ae
commit
f80624946c
3 files changed
+3
-4
No files matched your search
@@ -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