Hey all,
The following has two columns. Each column has a head with a name and
then a data cell with a time directly below it. I'm wondering how I can
get the time to display next to the name, not below it.
- @clock.in_groups_of(2) do |group|
%tr.header
- group.each do |item|
%th= item.name
%tr
- group.each do |item|
%td
%span.value{"offset" => item.zone.now.utc_offset}
= item.zone.now.to_s(:us_short_time)
Thanks for any response.
--
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 rubyonrails-talk@googlegroups.com.
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.
No comments:
Post a Comment