Rails casts using angular libraries