<tr>
    <th>Day work</th>
    <th>Start</th>
    <th>End</th>
    <th>Work time/Day</th>
</tr>


  <% for shift in @shifts %>
<tr>
  <td><%= shift.date.strftime '%a' %> <%= shift.date.strftime '%d/%m/%Y'
%></td>
  <td><%= time_ampm shift.start %></td>
  <td><%= time_ampm shift.end %></td>
  <td><%= (shift.end - shift.start)/100 %></td>
</tr>


now I want to add the sum of Work time/Day in to new field when i create

what is that command
-- 
Posted via http://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to