Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix the deletion of user bug

  • Loading branch information...
commit 6e5e732ad352c8aeb838205f9fc015584d46b71f 1 parent 50ce6b5
Shailesh Patil authored
View
2  app/controllers/plugins_controller.rb
@@ -3,7 +3,7 @@ class PluginsController < ApplicationController
def index
extension = Extension.first;
- redirect_to extension.entry_point
+ redirect_to extension.entry_point if extension.entry_point
end
View
3  app/views/plugins/index.html.erb
@@ -9,9 +9,6 @@
</div>
<br/><br/>
<div id = "matterinner">
- <div id = "innerlinks">
- <a href="extensionnavi.html">Navigation</a> |
- <a href="extensionfooter.html">Footer</a> </div>
<br/><br/>
<table width="601" border="1" cellspacing="0" cellpadding="0" bordercolor="#c5c3c3">
<tr>
View
4 app/views/users/index.html.erb
@@ -32,8 +32,8 @@
<% end %>
</td>
<td align="center" valign="middle" class="tablelinks">
- <%= link_to "Edit", edit_user_path(user) %> |
- <%= link_to "Delete", user_path(user), :method => :delete %>
+ <%= link_to "Edit", edit_user_path(user) %> |
+ <%= link_to "Delete", user_path(user), :method => :delete, :confirm => "Are you sure?" %>
</td>
</tr>
<% end %>

0 comments on commit 6e5e732

Please sign in to comment.
Something went wrong with that request. Please try again.