bots.rb 484 B

12345678910111213141516171819202122232425262728293031
  1. ActiveAdmin.register Bot do
  2. menu :priority => 4
  3. index do
  4. column :id
  5. column :botnick do |b|
  6. link_to b.botnick, "bots/" + b.id.to_s
  7. end
  8. column :owner
  9. column :activate
  10. column :created_at
  11. column :updated_at
  12. default_actions
  13. end
  14. show :title => :botnick do
  15. attributes_table do
  16. row :id
  17. row :botnick
  18. row :owner
  19. row :activate
  20. row :created_at
  21. row :updated_at
  22. end
  23. active_admin_comments
  24. end
  25. end