Tasks admin tags - WIP


This is a WIP PR to allow code review in parallel

Refactored code to avoid extra code in _grouped_index.html.haml including test to verify
Added main logic and bootstrap style (based on checkboxes) to allow merging and deleting tags if user is admin
Removed unused flags resources
Added some styles to allow showing debug information in screen while running in dev environment

Still Pending:
Control params for new action "reorganize" in tags_controller 
Adding control to avoid merges without new names.
Adding warning popup before merging or deletion
Adding Tests
Correcto, :+1: cambiado como propones:

Para rename: 
records.each { |r| r.update_columns tags: r.tags - [tag] + [new_name] }

Para remove:
records.each { |r| r.update_columns tags: r.tags - [tag] }

De hecho en uno de los links proporcionados (http://paweljaniak.co.za/2013/07/28/rails-4-and-postgres-arrays/) se habla de esa opción pero se me pasó por completo!