mow...@googlemail.com
unread,Aug 4, 2008, 7:25:02 AM8/4/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ActiveScaffold : Ruby on Rails plugin
Hey there,
I like to set my time dropdowns to the current time + next possible 15
min. While select_time takes this as the very first argument, I can't
figure how to pass it my object which this should be saved in. Vice
versa, I can manage to save my time picked with time_select, but can't
figure howto automatically fill in the right values...
def time_form_column(record, input_name)
select_time(Time.now, :minute_step => 15)
time_select :record, :time, { :minute_step => 15, :name =>
input_name }
end
can someone give me a quick hint?
thanks
mowsen