Displaying 20 results from an estimated 20000 matches similar to: "Possible to get month names as values when using date:select"
2008 Jun 26
2
Problem with date_select after Rails 2.1 upgrade
Folks,
I think I should start a new thread for this, because a similar one I
saw is a bit old and the resolution there doesn''t seem to apply to
what I''m running into now.
Anyway, my date_select calls are bombing on me with the exception:
----
ActionView::TemplateError (wrong number of arguments (3 for 2)) on
line #8 of entries/_dates_form.haml:
8: = date_select(
2006 Jun 07
2
date select box''s
Hi
I have the following date select box
<%= date_select ''min'', ''min'' %>
When you submit a date, it re-loads the page with the same date select
box, but displays todays date, no matter what you submitted before.
How can I get it to re load with the submitted date.
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
0
making a date object default to the last day of the month
hello all...question from a newbie trying to make a go at rails....
i have an account object which holds sundry information including a
credit card expiration date. i use date_select ( "object", "method",
:order => [:month :year] ) to allow the user to select the month and
year of his credit card''s expiration, but when this info is sent to the
model, somehow
2010 Oct 12
1
Using date select in rails.
Hey,
When I use date select in rails it gives me this really weird string.
How can I make a date selector in my view that the gives me a value that
can be used straight in a find query. I end up with an sql error when I
use date_select in my view.
Any advice?
Thanks.
Jakx12.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
2005 Sep 16
0
Specify attributes for 'date_select' select inputs
Hi,
I could not find an easy way to specify the ''id'' attribute for select
inputs of ''date_select'' form helper.
I need to set it because I want to retrieve date selects values from a
javascript.
<%= date_select ''product'', ''expiration'' %>
generates
<select name="product[expiration(1i)]">
2006 Jul 07
0
datetime/date problems w/ Oracle
I am "script\generate scaffold"ing w/ Oracle. The CRUD controls for DATE
columns in _form.rhtml are generated as datetime_select, rather than
date_select . This is understandable, as Oracle uses a DATETIME data type
for DATE columns. I''m also not too bothered by the fact that I have to
manually replace "datetime_select" w/ "date_select" for all
2006 Apr 10
1
Bizzare Date, DateTime, date_select issues
I''ve been banging my head against this wall for several hours, and it
hurts now so I''ll stop and ask someone.
In one of my forms I had been using a statement to extract the current
year for use with some form field calculations.
<% currentyear = DateTime.now.year %>
And then further down several date_selects like the following,
<%= date_select
2005 Apr 20
1
default date in date_select?
Hi there,
I''m new to Rails -- started with this project just about five days ago
-- I''m re-building an in-house ordering tool, and it would be handy to
pre-populate a date_select field with a value two weeks from now. The
calculation isn''t the hard part, it''s getting date_select to
pre-populate itself.
Any suggestions?
Thanks,
--Jim
2011 Aug 18
1
Loop trouble with Excel Serial Numbers!
Hi All!
I'm trying to convert serial numbers in Excel to dates in R. For each
single "thedate" entry, I get a correct answer. But if I try using the for
loop, I get bizarre numbers in "mynewdata".
thedate<-as.matrix(40548:40759,ncol=1)
exdate<-function(){
mynewdate<-NULL
for(i in 1:nrow(thedate)){
2006 Dec 10
2
set specific date with date_select
Hi All
I seem to have a problem with date_select methods. I cannot set a
default date. I tried the following:
<%= date_select( "post", "written_on", :selected => Date.new(2005,3,31),
:order => [:day, :month, :year] ) %>
But still I get todays date :(
Any suggestions what I do wrong here ?
Thnx a lot
LuCa
--
Posted via http://www.ruby-forum.com/.
2006 May 10
2
Rails, Postgres and the Date Field.
Hi guys,
I''m having problems with my app. First of all, I created a date_select
with the code:
<%= date_select(''contact'', ''birthday'', :order => [''day'',''month'',''year'']) %>
In the contacts table, I create a date field:
birthday DATE
When I save the values goes wrong into the database.
2006 Jun 13
0
date_select and date validation
Hi,
I''ve put together a simple form that contains among other things a
date_select:
<%= date_select(:user, :dob, :order => [:day, :month, :year],
:start_year => 1900, :end_year => Date.today.year) %>
In my controller I have some code to create a user entity from the
parameters posted up from the form, like so:
parameters:
2007 Oct 13
5
default date for date_select
Hi,
How can I set a default date for a date_select?
I''m trying to do something along the lines of:
<%= date_select("requirement", "target_date", :end_year =>
2020, :discard_day => true, :include_blank => true, :order =>
[:month, :year], :default => {:month => 10, :year => 2012 }) %>
but the default that comes up on the form is blank month
2006 Jan 07
4
set date with date_select
when retreiving a date from a DATETIME field in a database, is there a
way to set the date to the value of the DB in the view? It seems to
always default to the current date...
if I have a field called birthdate in the users table and i do
@user = User.find(@params[:id])
in my view i have a <%= date_select ''birthdate'',''user'' %>
but dont know how to
2004 Nov 11
2
RODBC & POSIX & Daylight Saving blues
Dear All,
The recent improvement in RODBC to recognize datetimes in tables has
exposed my ongoing confusion.
All my data are obtained from a satellite system (Argos) which tags events
in the GMT time zone. Daylight saving is ignored. To my way of thinking
this means that
1. twelve-o-clock means halfway through the day regardless of season, and
2. the difftime of any two dates where
2008 Oct 31
3
Date_select vs wrong date weird behavior
In my date_select if I choose 31 april 2008, it converts it for 1st may
2008 which it seems odd for me?
I say odd because first its difficult to validate at the model level, I
have to hook some code in the controller and secondly when I finally get
the validation errors I have to go back at the edit page and show the
selected date(and the error message) which should be 31 april 2008 but
the date
2006 Feb 28
1
RoR date_select() default date
Hi,
I''m trying to use the date_select() function of ruby on rails, but I
want my form easier to use and I want to put an explicit default date.
I don''t kow how to do that. I can''t find any information about default
on the web, and no example either.
Let me know if there is a tips that I don''t know...
--
Posted via http://www.ruby-forum.com/.
2007 Apr 03
0
not showing dates < Date.today in date_select
HI there
how do I tell date_select not to show the dates below Date.today
actually Date.today + 14
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from
2006 Jul 11
5
What are people using for date fields
I''m just curious about what techniques others have successfully used to
capture date data on forms as an alternative to the standard date_select. I
have to admit I''ve been lazy and only used the date_select as we have very
few dates in our system now, but that is about to change. I would like
something better.
Any thoughts?
--
Thanks,
Sam
-------------- next part
2009 Mar 15
0
Forms with date_select: How to set/leave a date to NULL?
Hi,
minor question:
If I create a form where some entries are of type date (i.e. use the
form.date_select to create the form field), it does not allow to enter
a NULL date. Even if the user does not enter anything, it forces a
NULL date to become today''s date.
Is there any (simple) way to give a date a NULL choice?
regards
Hadmut
--~--~---------~--~----~------------~-------~--~----~