well, lookee here. im going to answer my own questions (kind of), for
the sake of those (one person?) who come across it.
as ive been working with the excellent book "agile web development on
rails v2", my answer is from there, chapter 6.4 (p. 76ish).
i got that snippet of code from the scaffolding generator. the
generator makes things generic, hence the
h lesson.send(column.name)
but once you''re working with specifics, you dont need to use the
generics (although there might be a way to do things with the
generics.. cant figure it out). so you can specify column names and,
with the specified column name, do things with strftime which need
date fields..
lesson.start_time.strftime("%I:%M")
thats pretty much it. naturally, each column needs to be specified -
instead of that lesson.send(column.name) thing up there.. ~ari
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---