]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/show.html.erb
Merge remote-tracking branch 'upstream/pull/3293'
[rails.git] / app / views / user_blocks / show.html.erb
index 64f7299eff306aa122325e7929827fb0092ae1d9..d686bda105014dfb726c17994a18f32c9cdcdd6e 100644 (file)
@@ -14,7 +14,7 @@
       <li><%= link_to t(".edit"), edit_user_block_path(@user_block) %></li>
     <% end %>
     <% if can?(:revoke, UserBlock) %>
-      <li><%= link_to(t(".revoke"), :controller => "user_blocks", :action => "revoke", :id => @user_block.id) %></li>
+      <li><%= link_to t(".revoke"), revoke_user_block_path(@user_block) %></li>
     <% end %>
   <% end %>
   <li><%= link_to t(".back"), user_blocks_path %></li>