0

I'm using my own admin panel for my website and would like to introduce some bulk actions using http://railscasts.com/episodes/52-update-through-checkboxes. First of all, is this still best practice to do bulk actions?

Secondly, how can I generalize this piece of code so every controller in the admin panel can use it?

Looking forward to hearing your ideas!

Cojones
  • 2,930
  • 4
  • 29
  • 41
  • First of all `update_all` does not trigger `validations` so it is not recommended to use it and skip validations unnecessarily..if the field do not have validations then you can try `update_all` – Rajarshi Das Sep 19 '14 at 13:03
  • You're right actually, I wonder why Ryan Bates would use it anyway? Any suggestion about the problem itself? – Cojones Sep 19 '14 at 20:08
  • No one any suggestions? – Cojones Sep 23 '14 at 10:21

0 Answers0