Guest User

Untitled

a guest
Feb 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. View code:
  2.  
  3. <% @aro_classes.each_pair do |key, entry| %>
  4. <%= link_to_remote key + ' (' + @acl.send('aro_' + entry[:pluralized_symbol].to_s).count.to_s + ')', :url => url_for(:action => 'aro_relations', :id => @id, :clazz => key) %>
  5. <% end %>
  6.  
  7. Generates html:
  8.  
  9. <a href="#" onclick="new Ajax.Request('/gacl_engine/acl/aro_relations/3?clazz=User', {asynchronous:true, evalScripts:true}); return false;">User (0)</a>
  10.  
  11. <a href="#" onclick="new Ajax.Request('/gacl_engine/acl/aro_relations/3?clazz=GaclEngine%3A%3AAroGroup', {asynchronous:true, evalScripts:true}); return false;">GaclEngine::AroGroup (1)</a>
  12.  
  13.  
  14. Head content:
  15.  
  16. <script src="/javascripts/prototype.js?1156730390" type="text/javascript"></script>
  17. <script src="/javascripts/effects.js?1156730390" type="text/javascript"></script>
  18. <script src="/javascripts/dragdrop.js?1156730390" type="text/javascript"></script>
  19. <script src="/javascripts/controls.js?1156730390" type="text/javascript"></script>
  20. <script src="/javascripts/application.js?1156730390" type="text/javascript"></script>
  21.  
  22. clicking on the links doesn't result in any action. There is no request to the server, I observed the logs.
Add Comment
Please, Sign In to add comment