similar to: select_time help needed (Noob)

Displaying 20 results from an estimated 100 matches similar to: "select_time help needed (Noob)"

2006 Mar 21
5
Getting a time select input
I''m having trouble workign out which ActionView DateHelpers to display a time input for an ActiveRecord field of type :time. I just want an hours input and a minuites input. I can get these with time_select helper using :field_name and :prefix but it gives both hours and miniutes the same name. <%= select_time(Time.now, :prefix => "search", :field_name =>
2006 Jan 20
2
select_time issue: how to get hours only upto 12 along with AM/PM
My code is like this: <%= select_time () %> 1) I would like to pass more options so that the a blank value is at the top. I tried ":include_blank => true" but it didn''t work. 2) I would like to limit the number of hours to only upto 12. With the current code the hours has value rangin from ''00'' to ''23'' 3) Would like to have
2006 Feb 07
9
Is there a good time_select tag helper?
I''m trying to record a list of start and end times, and they''re simply an hour and a minute. Looking at the API, there''s a select_time helper, but that just creates the tag. There''s a datetime_select helper which takes an object and method name, so it does all the magic...but I only want to worry about the hour and the minute. I''ve tried writing my
2005 Dec 23
6
Selecting time
I''m currently building a small app that''s going to be used to keep track of the amount of time spend on customers of the company I work for. This mainly consists of object with a begin time, an end time and a calculation of the difference between those timestamps (actual time spend on the job). I made a small form with a datetime_select helper for the begin and end time (the
2006 Aug 02
0
newbie: Using text_field for date and select_time for time
Hi, I am having java script to enter the date using a calander to a text_field and having separate select_time for the time selection. but we want the controller end to have the normal ruby time format by concatenating the entered time using select_time and entered date using the text_field (via the calendar) Could someone please let me know how I could do it? I am not sure whether I
2005 Mar 04
0
Time input with select_time
In MySQL I have a table named "game_times" with a time type field named "begin". I figured it would be straightforward to use "select_time" to get input in the view: <%= select_time(Time.now, :prefix => "game_time[begin]") %> However, in the controller: @game_time = GameTime.new(@params["game_time"]) Doesn''t seem to work.
2007 Jan 23
0
Styling select_time
select_time, select_hour & select_minute all seem to ignore the :class option. Is there a way to apply a CSS class to these fields? Stephen Gerstacker Sr. Database Developer Electronic Data Payment Systems p: 866.578.9740 x114 f: 866.578.9740 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
2006 Mar 21
5
Use select_date for my model?
Hi all I have a model "party" that has a time field "starts_at". I have created a form to add new instances of this model. <%= select_date Date.today, :prefix => ''party'' %> Sadly I get the error: NoMethodError in Parties#add undefined method `month='' for #<Party:0x256a600> How can I fix this problem? I remember that I saw in
2008 Sep 11
2
time value won't come back from UTC
Hi there, I''m fairly new to RoR, and I seem to be having a problem with :time types. I save my times with a time_select on my form, to a time type field on MySQL. Rails automatically pulls it back to UTC from my timezone (+02:00), but when I display it again, it stays at the UTC value, i.e. I enter in 6:30, and I get 4:30 on my list. Is it just me, or is this a limitation of the time
2015 Feb 18
2
Intermittent problem, likely disk IO related - mptscsih: ioc0: attempting task abort!
> -----Original Message----- > From: Chris Murphy > Sent: Tuesday, February 17, 2015 20:48 > > On Tue, Feb 17, 2015 at 7:54 AM, Jason Pyeron wrote: > >> I'd post the entire dmesg somewhere > > > > http://client.pdinc.us/panic-341e97c30b5a4cb774942bae32d3f163.log > > At least part of the problem happens before this log starts. Feb 15 23:41:19
2007 Jun 22
2
problem with AR and 'virtual' multiparameter attributes.
Hello, I have a model which I would like to have a ''virtual'' date column. This column wouldn''t exist in the database, but would exist for validation, etc. The data would be provided in the form of a date_select in the view. This produces a multiparameter attribute. My problem is that the ''execute_callstack_for_multiparameter_attributes'' method in
2006 Jul 17
2
DB Admin Console
Over the past few months, I''ve developed an administrative console for databases in the process of solving other problems. At the moment, the state of development is: * Going to /admin_panel/model will bring you to a list of items in the model: * Supports acts_as_list via drag/drop sorting * Supports "activated" via an activated/deactivated button * Supports basic
2006 May 27
10
Displaying Hours
Here''s an intersting one: I have a client who wants to store hours of operation of a business for their RoR web app. I came up with a solution, but I really don''t like it. I have a MySQL table that has these fields monday_start, monday_end, tuesday_start, tuesday_end, etc., all as time fields. That''s all find and dandy. The kicker is, the client wants the hours to
2006 Aug 09
0
Rails security update
I see there is a mandatory security update out for rails today (http://tinyurl.com/lvqjs), but I cannot get it to install on XP. Anyone having a similar experience? C:\ruby\bin>gem install rubyzip Attempting local installation of ''rubyzip'' Local gem file not found: rubyzip*.gem Attempting remote installation of ''rubyzip'' Successfully installed rubyzip-0.9.1
2012 Jun 11
0
MirrorList.centos.org is now available on ipv6
Hi Everyone, It gives me great pleasure to announce that mirrorlist.centos.org is now available on ipv6; in addition to the existing ipv4 functionality. This is a full featured service, using geoip on the server end to hand out local-to-user IPv6 mirrors. Every url handed out is verified at regular intervals and only the freshest ones used. Our IPv6 mirror network is presently just under 150
2008 Mar 05
1
Using form fields that arent in database
Basically I need to know how to use forms fields when the attribute name for it doesn''t match a field in my database. I have a form like this. <td><%= date_select ''assessment'', ''ends_at_date'', :value => "Click here..." %> <%= time_select ''assessment'', ''ends_at_time''%></td> My
2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
Hello... Well, I post this one without too much hope that someone will be able to give me an answer, because it is strange. I have a time select field, the field on the database is of type time only. When creating a document, as long as the time is not greater than 14:00, then it saves as 00:00, but if the time is greater than 14:00 and less than 22:00 then it throws this error: 1 error(s) on
2012 Jun 12
0
CentOS-announce Digest, Vol 88, Issue 7
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a behavior similar to what you get using date_select with the :include_blank => true option where the first value in the dropdown is "- Month -", "- Day -", or "- Year -" rather than a blank value for the respective month, day, and year select fields. I took a look at the ruby source for