Friday, October 4, 2013

Custom validation on nested attributes



instead of hitting the database with a sum-query, you could calculate the stuff based of the activities collection like this

    self.activities.map(&:hours).sum






Proxmox installation display out of range

Reference:  https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/