Displaying 20 results from an estimated 70000 matches similar to: "datetime_select -- include seconds?"
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
Hi All
In my project I am to take date of birth from user so I used
datetime_select. It renders three selection boxes, year, month and day. But
I want order as day, month and year. I added :order option for
datetime_select, it renders normal selection boxes with order year, month
and day. Why :order does not work with datetime_select? see my following
code
<%= datetime_select(:user2,
2008 Jul 04
4
select_datetime // datetime_select
Hi I have 2 question for you guys,
1. Which is the difference between this two methods? (select_datetime,
datetime_select)
2. How I assign the selected date-time values, to an specific variable
or array using select_datetime
I know do it using datetime_select(''object'',''method'')
I aprecciate your attention.
Thanks
PD: Sorry about my english.
2007 Jul 08
2
datetime_select, is creating an instance of the Time class
Hello
It seems that datetime_select, is creating an instance of the Time
class. Why would that be?
I found this while building a site where people can create vigils
(prayer vigils, peace vigils, etc). When I added a validation method
that compared start_date to created_at, it generated the error:
ArgumentError (comparison of Time with DateTime failed):
I was able to put a breakpoint in the
2008 Apr 14
3
datetime_select custom input fields
by default datetime_select allows the user to input any date and time
they want.
Is there a way it can only allow a user to select an hour between 8AM
and 6PM and only allow them to choose the top of the hour (:00) and
the half hour (:30) for the minute?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Aug 30
0
Add html_options to datetime_select?
Why can''t do so something like:
:onfocus => "alert(''hey'');"
For a datetime_select. I tried doing:
:html => {:onfocus => "alert(''hey'')"}
and
:html_options => {:onfocus => "alert(''hey'')"}
any ideas?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 05
0
How can i specify default time to datetime_select tag
I want to specify a different default time to datetime_select tag how
can i do that.
also i was looking at rails helper code
-----------------------------------------------------------------------
module ActionView
module Helpers
module DateHelper
def to_datetime_select_tag(options = {})
defaults = { :discard_type => true }
options = defaults.merge(options)
2007 Dec 12
3
datetime_select and Active Record
If I have a form similar to the one below, and ''start'' is a "string"
field in my Database. Is there a way to take all of the date/time
params and put them into ''start'' without too much hacking? I would
like this to be as clean as possible.
<p><label for="start_time">Start Time</label><br/>
<%=
2006 Sep 19
2
[OT] SVN: Anybody use BDB?
I''m moving my Subversion repository to a new server. The old server uses
Berkeley DB/Sleepycat and if memory serves, it was a lot of effort to
set that up -- so I think I''ll try FSFS. Does anybody use BDB and prefer
that over FSFS? Or had any problems with FSFS? (I never had any problems
with BDB, performance or otherwise, btw.)
Thanks,
Joe
--
Posted via
2006 Feb 22
1
specifying m/d/y order in datetime_select
the date_select form helper has a neat little feature which lets you specify
the order of the month/day/year that is displayed on the form via the :order
parameter. i.e.
<%= date_select ''blah'', ''somedate'', :order=>[ :month, :day, :year ] %>
however, i don''t see a similar option for datetime_select. passing
an :order parameter is happily
2006 Nov 04
0
observe_field and datetime_select
Hello all,
I have a form with a datetime_select.
I need to use the actual time selected in an action triggered by
observe_field.
Could make it work with other select fields, but not with datetime_select.
Seems that observe_field can locate the element just by the id (not by the
name).
If so, how can I set the ID of datetime_select ???
I''m in this for some hours, but could not find a
2006 Mar 01
0
datetime_select & styles
Hello,
apologies if this has a trivial solution but after rumaging around
google for a while I haven''t found one. I am trying to set the style of
the datetime_select compound widget but it appears to ignore all my
efforts ... the API specifies
datetime_select(object, method, options = {})
so you would expect
<%= datetime_select ''log'',
2006 Apr 04
2
Accessing datetime_select value
How do I get a value from datetime_select? Do I need to get each value
from it''s dropdown element individually or is there a way to get the
date by referencing one object? Anyone have any good examples?
-Andy
2006 Aug 07
1
datetime_select problems
Hi,
I have a datetime select in my form like this:
DATE/TIME REPORTED: <%= datetime_select ''report'', ''rep_date'' %>
This works beautifully for creating a new record. The data is saved as:
2006-08-07 11:33:00
Now, the problem is when I try to load the form with saved values
to do an update.
The above code works and loads the saved data in another one
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr
clock? I need to make a input field that works exactly like the
reminders datetime selecton dropdowns in Backpack to populate a
datetime field in my DB. i.e in the format: month, day, year ? hour
(1-12) minute am/pm. Should I change my database to have a separate
column for date and one for time and use date_select()?
Can
2011 Jun 06
0
datetime_select and in_time_zone?
I''m working with an app for a concert tour website (www.yogabbagabbalive.com),
where all times (announcement times, on-sale start times, and event start
times) are local to each particular venue''s time zone. I take the user
entered date/time where applicable and run a before_filter to set the
appropriate time zone so that everything is stored in the database in UTC.
For the
2006 Oct 03
10
Are you PRO on RoR?
Do you want to get in...
...and got what it takes?
I''m working as it-responsible (diplomatic service) for the Republic of
Cyprus. Now I want to move on, I know that I have the next big thing in
the dot com biz.
It all begun from a dream that became a businessplan and also later on
was nominated by UN World Summit Awards and won the title as best
initiative in category ICT.
In a few
2005 May 02
1
datetime_select and discard
ok so datetime_select if you use the discard options
say { :discard_month => true }
when you just do update_attributes on said object
year would be correct
month would be the hour
date would be the minute
so if you select
year: 2005
hour: 12
minute: 13
the time object would go into the db as:
''2005-12-13 00:00:00''
so my question is how do i get the time object properly
2006 Aug 10
1
Convert datetime_select to Time object?
--------------------------
Question 1
--------------------------
I am dealing with a database that holds products and it has a datetime
field called "active_at". so I have the following for active_at:
<%= f.datetime_select :active_at %>
It gives me 5 different params:
params[:product][:active_at(1i)]
params[:product][:active_at(2i)]
params[:product][:active_at(3i)]
2007 Jan 24
1
Removing empty class attribute from @template.content_tag
Hey all,
I have a quick question regarding the @template.content_tag methos when
creating a custom form builder.
Currently have the following method in my AccessibleBuilder class:
def datetime_select(field, options = {})
required = options.delete :required
label = options.delete :label
@template.content_tag("div",
@template.content_tag( "span", Example Label ) +
2006 Jul 14
0
datetime_select and onchange?
Is it possible to add an onchange handler to a datetime_select call?
I realize the complication exists in that the helper actually creates
many different select elements, but rails could just spread the
onchange across all of them.
-Payton