similar to: Styling select_time

Displaying 20 results from an estimated 900 matches similar to: "Styling select_time"

2006 Oct 03
3
Capistrano and Uploaded Documents
I have an application I''m working on which allows me to upload files. The files are stored somewhere in the public directory so that they can be accessed directly. When I deploy an update with Capistrano, I ''lose'' the files because of the current symlink points to the new checked out version. Before I start working on a solution, has anyone else already solved this
2007 Mar 30
0
select_hour and select_minute methods
Is there anything in the mix to add :class, :id etc html_options to the select_hour and select_minute methods? I found this post, http://groups.google.com/group/rubyonrails-talk/msg/fcc4907eee2bfd33?dmode=source, dated late January that touches on the subject. I''m curious if this is an issue in the current rails development. Anyone have any info?
2005 Dec 12
1
Search screens with dates
Tried googling and searching the lists for this. I''d like to do a search on some dates and naturally enough use the date helpers. I have a number of problems: -- datetime_select wants an active record model -- select_datetime does not take the options that datetime_select take - specifically :order that leaves me with something like <label>Date/Time
2006 Jul 16
1
form helpers with non-ActiveRecord objects
I have an ActiveRecord model (called Festival) that contains an array of "FestDate" objects serialized into a sql text column of the Festival object. (like the Agile book first edition describes on p. 205) The FestDate objects themselvs are not ActiveRecord objects. (of course, otherwise they would be in their own table...) When working with a Festival, I would like to use various
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 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.
2006 Mar 12
3
select_time help needed (Noob)
I can''t seem to get a handle on how the select_time helper is supposed to work. I''m a complete noob to rails so bear with me please. I''m trying to add fields to a form to allow for time (hh:mm) selection ie. call received, enroute, etc.. I don''t understand how one maps the form data to the table object and field ie. calls table recieved field.
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 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)
2006 Jul 06
3
Understanding date_select naming conventions
I am using the date_select helper to generate date select elements in a form. I notice that the generated HTML shows that these selects have the following names: Month: current_job[StartDate(2i)] Day: current_job[StartDate(3i)] Year: current_job[StartDate(1i)] I''m assuming that the Xi identifiers somehow specify the appropriate date part from a date or time value. Can anyone
2006 Jul 18
1
Auto-populating time portion of a datetime field from a form
I see that if I use the date_select helper in my view, then in the generated page, my selects are named obj[datetime_field(1i)] (and 2i and 3i for the other parts). These auto-populate the date portion of my datetime_field. I have another datetime field that I''m presenting the time from and I would like to use a similar scheme to autopopulate it. Currently, I''ve used the
2000 Mar 07
1
Compiling error on CVS
When I compile the latest CVS, I get the following error: Compiling param/params.c gcc.colorgcc: Internal compiler error: program cpp got fatal signal 11 make: *** [param/params.o] Error 1 What did I do wrong?? Stephen Gerstacker The Gradall Company phone: 339-2211 ext. 8814 ******************************************************* The information contained in this transmission 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
2006 Mar 10
14
Oracle Date type errors rails on edit
I have a table with "expires_on" a DATE field. "Show" and "Destroy" work, but "Edit" errors: /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/date_helper.rb:150:in `select_hour'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/date_helper.rb:149:in `select_hour'' It only happens when
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 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: <%=
2005 Jul 14
3
read.xport
I am trying to import data from a SAS XPORT file that contains 24 SAS files. When I use the "read.xport" procedure only about 16 data frames (components) are created. Any suggestions? ************************************************************************* Gary A. Nelson, Ph.D Massachusetts Division of Marine Fisheries 30 Emerson Avenue Gloucester, MA 01930 Phone: (978)
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
2000 Mar 16
1
Samba CVS
I got the latest CVS release, but when i run the server, the logs say that it cant find unicode_map.850. Where do i get this at??? Stephen Gerstacker The Gradall Company phone: 339-2211 ext. 8814 ******************************************************* The information contained in this transmission is confidential. It is intended solely for the use of the individual(s) or organization(s) to