search for: to_datetime_select_tag

Displaying 4 results from an estimated 4 matches for "to_datetime_select_tag".

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 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) options_with_prefix = Proc.new { |position| options.merge(:prefix => "#{@object_name}[#{@method_name}(#{position}i)]") } datetime = options[:include_blank] ? (valu...
2005 Mar 12
0
scaffolding issue
...ms/actionpack-1.5.1/lib/action_view/helpers/form_helper.rb:236:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/form_helper.rb:236:in `value'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/date_helper.rb:246:in `to_datetime_select_tag_without_error_wrapping'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/active_record_helper.rb:173:in `to_datetime_select_tag'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/date_helper.rb:69:in `datetime_select'...
2005 Dec 01
0
Problem using a date helper
...ot;train_stonybrook_at">Stony Brook at</label><br/> 19: <%= time_select "train", "stonybrook_at"%> 20: </p> 21: </td> 22: <td> The line it references in date_helper.rb looks like this: InstanceTag.new(object, method, self).to_datetime_select_tag(options) What am I doing wrong? BTW, I''m on OS X 1.4.3, using Locomotive with the Rails 0.14.3 Max bundle. Thanks, Alison