search for: date_end

Displaying 5 results from an estimated 5 matches for "date_end".

Did you mean: data_end
2006 Feb 16
1
Help with validation
..."list") else flash[:notice] = "Failed." redirect_to(:controller => ''user'', :action => "request_holiday") end end [/CODE] In my holiday model, I check that the dates have been entered sensibly: [CODE] def validate if date_start > date_end errors.add_to_base("From date cannot be greater than to date") end end [/CODE] I know the validation works because I can get the ''Failed'' flash notice, but I can''t seem to get the error message using error_message_for(:holiday) in the page. I also can...
2006 May 09
0
Problem with date_select
Dates defined chosen with date_select are not coming through once the form is submitted. I have this in a form: <%= date_select ''search'', ''date_start'', :include_blank => true %> <%= date_select ''search'', ''date_end'' , :include_blank => true %> However, when I submit the form params[:search][:date_start] is nil. I have other text fields that are coming through just fine. Somehow rails isn''t reassembling the date object. Surely I dont have to create the date object by hand. My l...
2012 Dec 04
1
Periodicity of Weekly Zoo
...d to find seasonality. > sales <- read.csv("asr.csv") > library(zoo) Attaching package: 'zoo' The following object(s) are masked from 'package:base': as.Date, as.Date.numeric > sales.zoo <- zoo(subset(sales, select=c(2:length(sales))), order.by= + sales$date_end, frequency = 52) > sales.zoo.i <- na.approx(sales.zoo) # interpolate internal NA values > frequency(sales.zoo.i) # 52, which seems right [1] 52 > cycle(sales.zoo.i[1:20,16]) # everything is in the same cycle... 2004-08-14 2004-08-21 2004-08-28 2004-09-04 2004-09-11 2004-09-18...
2008 May 23
0
R(c,*g) helper method can''t handle nested hash input params
...ot;=>"created_on", "order"=>1, "report_type"=>"year_end", "person"=> {"reply_status_id"=>"1", "created_on"=> Tue, 01 May 2007 00:00:00 +0000..Fri, 23 May 2008 00:00:00 +0000}, "date_end"=>"2008-05-23"} R(Report,params) = "/report/?search=Search&date_begin=2007-05-01&date_type=created_on&order =1&report_type=year_end&person=reply_status_id1created_on2007-05-01T00%3A00%3A00 %2B00%3A00..2008-05-23T00%3A00%3A00%2B00%3A00&date_end=2008-...
2006 Aug 02
1
ActiveRecord: find_or_create with has_and_belongs_to_many --
...erm ON term.id = school_term.term_id WHERE (school_term.school_id = 1 ) AND (term.`code` = ''FALL06'' ) LIMIT 1 but the INSERT behavior does not include a join table insert if the SELECT does not find an appropriate record: INSERT INTO term (`code`, `name_full`, `name_common`, `date_end`, `date_start`) VALUES(''FALL06'', NULL, NULL, NULL, NULL) I have resolved this by changing my original code to implement a uniqueness check in ruby: term = school.terms.find_or_create_by_code("FALL06") school.terms << term unless school.terms.any? do |i| i == term...