Displaying 8 results from an estimated 8 matches for "select_datetime".
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 Nov 28
0
reg : select_datetime
Hi,
I want to display date and time. I used
<%= datetime_select (:program ,:trailer_date )%>
program=Program.new(params[:program])
when i save this format it is throwing error.if any one knows how to
solve pls help me
with regards,
shiva
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Jun 08
5
AM/PM select
I have a customer that has a request that the select_datetime fields
have AM/PM selectors instead of 24 hour time.
The rails time and datetime selects seem to only support 24 hour time.
I can''t seem to find any information on this. i was wondering if
there is already a solution out there, or will i have to roll my own?
Sean Wolfe
master nerd of...
2005 Apr 27
2
noob question: rhtml new/edit views and the date functionality
...ject.
Basically, the "Recipe" table looks like this:
id int8
title varchar(255)
description text
date timestamp
category_id int8 (fk to the category table)
and I need to generate the select boxes for the date column. I''ve
been browsing the API and the datetime_select/select_datetime and can
get the unbound stuff to show with this chunk of code:
<% =select_datetime(datetime = Time.now, options={}) %>
but I want it tied automagically to my database field. I know it is
something simple that i''ve overlooked and can''t seem to grasp while
browsing the API....
2006 Mar 02
6
Newb question about facade columns
Hello,
I am trying to deal with a database table that contains a date in the
form of the number of seconds since epoch. Data is inserted in this
format by an existing script that I can''t change, so a schema change
isn''t realistic.
I would like to allow humans to view and edit this data in the form of
an actual human-readable date. I figured a facade column would be the
2006 Aug 14
2
(no subject)
I have the following code that generates a rhtml page,
<%= start_form_tag :action => ''create'' %>
<%= render :partial => ''form'' %>
<%= submit_tag "Create" %>
<%= end_form_tag %>
<%= link_to ''Back'', :action => ''list'' %>
...I am trying to put a "Browse" button to
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 To:</label><br />
<%= select_day time = Date.today, {:prefix => ''to''} %>
<%= select_month Dat...
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