Displaying 9 results from an estimated 9 matches for "select_day".
Did you mean:
select_date
2005 Dec 12
1
Search screens with dates
...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 Date.today, {:prefix => ''to''} %>
<%= select_year Date.today, {:prefix => ''to''} %>
<%= select_hour Time.now, {:prefix => ''...
2010 Jul 26
1
form date helper with text year
...year range is more then I want to define in a
select_date scaffold generated year range.
My idea was to have the year entered as a text field and the month and
day using something like:
<%= select_month @person.born,:prefix => :person ,:field_name =>
"born(2i)" %>
<%= select_day @person.born,:prefix => :person , :field_name =>
"born(3i)" %>
<%= f.text_field ?????? or text_field_tag ???????? field_name =>
"born(1i)" %>
I just can''t seem to find the set of options to build the year tag.
Guess I also would have to extract the...
2006 Jul 26
2
text_field and date_select in collection
hello,
i would like to display a collection of records on one page (e.g. an
author record with all his/her books).
a record contains a text_area (e.g. a description of the book) and a
date_select (e.g. when the book was published).
<% for @book in @author.books %>
<%= text_area ''book[]'', ''note'' %>
<%= datetime_select
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct
a date helper as one would see in Rails?
Thanks,
Michael Gorsuch
http://www.styledbits.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html
2009 Sep 02
8
select_month helper
...m trying to rewrite a fusebox-like application (Active4D plugin to
4D database) in RoR/postgres and I''m doing okay - but keep running
into things that stump me. It seems like it takes me hours to figure
out something that I could have written in pure code in minutes.
The select_month and select_day helper has been my latest waste of
time. All I''m trying to do is add a javascript onchange call and I
can''t get it to show up.
Given:
select_month(date, options = {}, html_options = {})
I have:
select_month(0,:include_blank => true, :onchange => "setBirthMMDD"...
2006 Feb 05
0
How can i specify default time to datetime_select tag
...ime = options[:include_blank] ? (value || nil) : (value ||
Time.now)
datetime_select = select_year(datetime,
options_with_prefix.call(1))
datetime_select << select_month(datetime,
options_with_prefix.call(2)) unless options[:discard_month]
datetime_select << select_day(datetime,
options_with_prefix.call(3)) unless options[:discard_day] ||
options[:discard_month]
datetime_select << '' — '' + select_hour(datetime,
options_with_prefix.call(4)) unless options[:discard_hour]
datetime_select << '' : '...
Overriding date_select in local project to use custom value rather than blank for starting option...
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
2006 Jan 15
4
form inputs resetting on sumbit
I searched for forum for something about this but couldn''t find
anything.
For example I have this in my view: (you enter start/end dates from
dropdowns, pick a category and a report is generated.)
<%= start_form_tag :action => ''display_report'' %>
From: <%= date_select ''report'', ''date1'' %> <br />
To: <%=
2009 Feb 26
8
beginners question
...alue => ''with'',
:onclick => ''date_clicked
(false)''
}) %>
<%= f.label( ''due date'' ) %></td>
<td>
<%= select_day( @day, { :disabled => @nodate }, { :id => ''did'',
:name => ''dname'' }) %>
<%= select_month( @month, { :disabled => @nodate }, { :id =>
''mid'',
:name => '...