NM..

This actually does work:

schedule.date_scheduled.strftime('%I:%M %p').gsub(/0?(\d):/,'\1:')

I had to place it in another place because I forgot I was looking for a 
conditional.  The %l does not work and it may just be ruby version 
related.  I'm sure that 1.9 came out with new time features and maybe 
that's part of them..
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to