search for: the_date

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

Did you mean: the_data
2006 Aug 04
5
Creating new record from a form? (stringify_keys! error)
...:url=>{:action=>''new''}, :html=> {:action=>''new'', :method=>''post''}, :complete => "new Effect.BlindUp(''admin-stats-panel'', {duration: .25})")%> Date: <%= text_field_tag ''the_date'', @today, :size=>12 %> Height (in): <%= text_field_tag ''height'', '''', :size=>5 %> Weight (lbs): <%= text_field_tag ''weight'', '''', :size=>5 %> <%= submit_tag ''Save'' %&...
2012 Jan 22
4
undefined method `gsub!' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span
Hey all, I am getting this error: NoMethodError (undefined method `gsub!'' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span): in this code: date_range = Chronic.parse(the_date, :guess => false) reports.sum_distance_by_date(date_range).each do |d| u[:m] << d end def self.sum_distance_by_date(time) time = time ? Date.parse(time) : Date.today.to_s reports = find_by_sql(["SELECT date_trunc(''day'...
2011 Oct 15
2
function for handling time
Dear all I have the following time stamps (in the following format) MeasurementSet$TimeStamps        [,1] [,2] [,3] [,4] [,5]   [,6]   [1,] 2011    7    2   13   43 48.718   [2,] 2011    7    2   13   43 54.281   [3,] 2011    7    2   13   43 59.843   [4,] 2011    7    2   13   44  5.390   [5,] 2011    7    2   13   44 10.859   [6,] 2011    7    2   13   44 16.375   [7,] 2011    7    2   13   44
2008 Apr 17
0
Having problem with validates_presence_of fields in form when trying to also use ActiveScaffold (x-posted at ActiveScaffold group)
...ncludes the models Event and DateAndTime, so an event that happens more than once (like a high school play) can have more than one date_and_time. The Event model has_many date_and_times, and the DateAndTime model belongs_to event. The Event model validates_presence_of two submission form variables, the_date and the_time, and those variable values then get used to create a new date_and_time object once the form is submitted. My ActiveScaffold problem is that when the update form for the Event model displays, it shows all the correct dates and times in drop-down lists (with the ability to either edit o...