Rails le agregó los métodos hours y minutes a Integer. Podrías hacer algo como
total = (180.hours + 50.minutes).to_i
# => 651000
horas = 0
minutos = 55
segundos = 52
total -= (horas.hours + minutos.minutes + segundos.seconds).to_i
total # => 647648
----
You received this message because you are subscribed to the Google
Groups "ror-es" group.
To post to this group, send email to ror...@googlegroups.com
To unsubscribe from this group, send email to
ror_es+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ror_es?hl=en
Rails no escala.
---
You received this message because you are subscribed to the Google Groups "ror-es" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ror_es+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit this group at
http://groups.google.com/group/ror_es?hl=en
Rails no escala.
---
You received this message because you are subscribed to a topic in the Google Groups "ror-es" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ror_es/Pf8HeKe9x8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ror_es+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/ror_es?hl=en
Rails no escala.
---
You received this message because you are subscribed to the Google Groups "ror-es" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ror_es+un...@googlegroups.com.