search for: to_date_select_tag

Displaying 6 results from an estimated 6 matches for "to_date_select_tag".

2005 Nov 04
0
RE: Why class InstanceTag is defined at 4 different places inRails
...redefinition. The best part is that you can do the same ! An easy way to overwrite an existing method or to add new ones is to create a file under you rails application lib directory and put in it the replacement you want to make: module ActionView module Helpers class InstanceTag def to_date_select_tag(options={}) # => your code here end end end end Then, require it at the end of environment.rb. I believe the new plugin system (I am still at v0.13.1) will formalize this to avoid modifying the environment file. ________________________________ From: rails-bounces-1W...
2006 Jun 14
2
Date as INPUT not Selects
Greetings! Can anyone tell me how to use just a normal input field as a date entry? I can use a text_field tag, but that brings the date out in CCYY-MM-DD format. I would like to be able to simply key in my dates like mm/dd/ccyy format. Thanks, Jeremy
2006 Jan 25
0
InstanceTag
Hi, I''ve been prying my way around form helpers and I need to do something very similar to date_select. I was thinking I might be able tailor it to suit my purposes and then came upon InstanceTag.new with a call to_date_select_tag at the end. I can''t find any mention of these anywhere else - can anyone give me any pointers as to what these two things do? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
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 Mar 15
1
Strange behaviour of dates
...raised: undefined method `year'' for "1993-02-05":String /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/ date_helper.rb:222:in `select_year'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/ date_helper.rb:275:in `to_date_select_tag_without_error_wrapping'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/ date_helper.rb:274:in `to_date_select_tag_without_error_wrapping'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/ active_record_helper.rb:170:in `to_da...
2006 Jan 23
11
mysql dates
...es that are like the following: 2005-04-00 2005-00-00 and I need to set null values in a date_select for elements that are 00. These are valid dates in mysql. In the absence of an immediate solution to the above, I''ve been trying to find out how InstanceTag.new works so I can overload the to_date_select_tag() method. Has anyone ever done this, or have any pointers as to how I might approach the problem this way? I''m in a bit of a bind because whenever I use '':include_blank => true'' in a date_select form, the result is always applied to the date field in the db as eg. Ja...