This was answered in the question you linked.
If you are using LVM, you need to add discard to the options in /etc/fstab
Open /etc/fstab with any editor
# Command line
sudo -e /etc/fstab
# Graphical
gksu gedit /etc/fstab
Add in "discard" to the options in the 4th column.
/dev/mapper/volumegroup-root / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1
You then add in the same option (discard) to /etc/crypttab
Assuming your LUKS partition is /dev/sda1 (adjust accordingly)
# Command line
sudo -e /etc/crypttab
# Graphical
gksu gedit /etc/crypttab
Again, add in discard:
sda1_crypt UUID=[... series of numbers ...] none luks,discard
Update your initramfs
sudo update-initramfs -c -k all
Reboot
Confirm TRIM is working ...
sudo dmsetup table /dev/mapper/sda1_crypt --showkeys
You should see "allow_discards" in the output
For additional information, see : http://worldsmostsecret.blogspot.com/2012/04/how-to-activate-trim-on-luks-encrypted.html