As far as it''s not time, rather ''amount of time'',
integer field for
minutes should work.
Or decimal (one digit under the point) for hours - who really need
those minutes counted?
Text field in view will work best, but make sure to handle inputs like
"half hour", "two hours and a bit" and "whole
day".
On 22 фев, 14:02, Sijo Kg
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi
>
> I have to create in view a field as
>
> Effort= Hour:Minute
>
> If Hour is more than 24 Then a day is counted..How can I setup this in
> view?And what field(Type) should be there in the database(Postgres) to
> store it?
>
> More details
> A work is given to a person.Here he can say how much time he took to
> complete it.
>
> Sijo
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---