Questions tagged [time-select]
27 questions
0
votes
2 answers
undefined method with time_select
I am trying to use a time select with locals passed to the partial, but I am getting the following error
undefined method `open_time' for #
Partial Call
= form_for @merchant, :url => admin_merchant_path(@merchant) do…

Boss Nass
- 3,384
- 9
- 48
- 90
0
votes
1 answer
Rails Form Time_Select formatting problems with Bootstrap
For my time_select tag in my Rails form, the hour and date components of the field are separated by a break. I would like them to be inline but no matter what I do I can't seem to achieve this. I've attached a picture of my code.

Frankie Soucy
- 23
- 5
0
votes
1 answer
Validating start and end time attributes
I am trying to validate what I thought would be fairly simple to do. I have two time_select attributes "start_time" and "end_time". I am simply trying to validate in the controller whether the end time entered by the user is equal to the start…

NinjaBranDizzle
- 51
- 7
0
votes
1 answer
is there any form helpers for selecting time in hours minutes, and am pm in rails?
I have a time field in my database. I want to have a time select field to select the time as three drop downs, for a 12-hour clock. One drop down is to select the hours from 1 to 12, the second drop down is to select the minutes from 1 to 59, and…

John
- 1,273
- 3
- 27
- 61
0
votes
1 answer
Rails time_select with offset?
I am trying to create a time_select in a rails3 application which only allows '15' and '45' to be chosen.
I am already using :minute_step => 30, but that only gives me 0,30. I guess I am looking for an option :minute_offset => 15, which doesn't seem…

ChrisDekker
- 1,584
- 18
- 39
0
votes
1 answer
ExtJS xtype timefield - set default selected
I've inherited an application that uses ExtJS and am relatively unfamiliar with it's conventions.
I have a select box for time entry that defaults to a time passed in. Is it possible to set selected = selected for the value it defaults to? Currently…

Matt
- 7,022
- 16
- 53
- 66
0
votes
0 answers
Java bean (a graphic widget) or other technique to allow a use to select a time?
Does anyone know of any good Java bean (a graphic widget) or use of Swing, that allows a user to choose a time? They only need to select the hour and minute they want, not the second or millisecond etc.
I have found a good date selection bean…

Oliver Funk
- 166
- 1
- 15
0
votes
1 answer
Time format while submitting
I have a form input code like this:
<%= f.time_select :delivery_time, {:default => 5.hours.from_now, :minute_step => 5, :ampm => true}, {:class=>"input-small"} %>
This is submitting value like: 2013-04-09 23:00:00 UTC
But i want value like :…

user2206724
- 1,265
- 3
- 20
- 38
0
votes
1 answer
Rails3 time_select does not assign correctly to model time column
I have just upgraded from rails 2.3.14 to 3.2.2.
My time_select worked fine before the upgrade.
Now the model 'start_time' and 'end_time' columns are always nil after I assign the parameters.
here is the view:
<%=label_tag("Start Time")%>
…

giorgio
- 2,115
- 5
- 23
- 39
0
votes
2 answers
Using accepts_nested_attributes_for in rails with datetime
I'm trying to use a repeatable section of datetimes in a rails app using accepts_nested_attributes_for.
I have the following:
accepts_nested_attributes_for :meetings, :allow_destroy => true, :reject_if => lambda { |a| a[:starting_at].blank? }
In my…

user1116573
- 2,817
- 4
- 17
- 27
-1
votes
2 answers
How can i set hour and minute in time select on 1 input field?
I want to set my time select like this click here
I used = course_form.input :start_at, label: false and html show hour select in 1 input field and minute in another input field.

Avada Kedavra
- 53
- 11
-1
votes
1 answer
Android time selection in a unique way
(I'm using Android Studio 1.1.0)
How can I make this kind of time selection in my app's layout?
Is it a ready made component? How is it called?
I'm talking about the circular part where the user can select how many minutes/hours until...

Amos
- 1,321
- 2
- 23
- 44