search for: start_year

Displaying 20 results from an estimated 45 matches for "start_year".

2006 Nov 04
2
date_select parameter
Trying to add start year to date_select <%= date_select(:start_year => 1980)%> It''s throwing an exception "wrong number of arguments (1 for 0) Can''t I add a start_year, API shows this option ? TIA Stuart http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message beca...
2006 Jan 19
2
date_select broken
I am using date_select and in some instances it only shows about 10 years worth of choices. Same form on other users shows the whole range. date_select looks like this <%= date_select ''user'',''birthdate'' , :start_year => 1940 %> I would expect to always see 1940-2006 or so , but i dont always do. Is there a way to force the range or explain why i woudlnt always see this range ? thanks adam
2006 Mar 15
1
Strange behaviour of dates
...from a browser and select a contact to edit I get the proper form up on screen and this section: <label for="contact_date_of_birth"><b>Date of birth: </b></label><br> <%= date_select ''contact'', ''date_of_birth'', :start_year => 1900 %> Returns 3 drop downs that are auto populated with the contacts dob in the database. Now when I go to the /App controller and get my list, I have a custom find the basically looks like this: def edit @app = App.find(params[:id], :joins => "LEFT O...
2009 Jan 28
1
How to give onchange for select_year rails helper....
<%=select_year(Date.today,:include_blank=>true, :start_year => Date.today.strftime("%Y").to_i, :end_year => 1999)%> i am using rhis helper... now i want to give onchange here.... Please help me to solve this .... thanks in advance JK -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ Y...
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...n error for me. Any ideas? Thanks! <p><label for="email">Expiration</label><br/> <input type="hidden" id="user_card_expiration_3i" name="user[card_expiration(3i)]" value="1" /> <%= f.date_select(:card_expiration, :start_year => 2008, :use_month_numbers => false, :discard_day => true, :include_blank => false) %></p> ActiveRecord::MultiparameterAssignmentErrors in AccountController#signup_unlimited Parameters: {"user"=>{"company_name"=>...
2004 Apr 02
2
Futzing with TaskScheduler
...I mostly dislike camel case and I''m not sure what logic MS used when it chose "BeginX" versus "StartX". I''m just going to use "start". So for now I''m looking at something like this: t = Trigger.new(task_name,some_host) t.trigger = { :start_year => 2004 :start_month => 4 :start_day => 25 :start_hour => 23 :start_minute => 5 :trigger_type => DAILY :week => FIRST | LAST :dow => MONDAY | TUESDAY | WEDNESDAY :months => JANUARY | FEBRUARY | MARCH } How''s that look? Dan ____________...
2005 May 31
2
Form Dates and MultiparameterAssignmentErrors
...h field. The controller line throwing the exception is: redirect_to :action => "longform" if @borrower.update_attributes(@params[''borrower'']) The view line for the date select is: <%= date_select ''borrower'', ''date_of_birth'', :start_year => 1900 %> Saving dates later than 1 Jan 1970 works fine (but then not everybody was born after 1970...). The development log does not show a line for the update query on requests that throw the exception. I''m using the SQLServer (yes, MS SQL) adapter - but that *shouldn''...
2006 Mar 04
5
has_many and belongs_to example?
Hi! If i have 2 tables i.e. product and images and product has_many images, image belongs_to product - how to create _form.rhtml, new/create and edit/update methods in product controller, so in a single form i can add one product and MANY (let''s assume for now that this number is fixed) images for this product? Pleeeeease help me :) -- Posted via http://www.ruby-forum.com/.
2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
...school project, and can''t seem to find a solution for something. I have this inside the form inside of edit_albums.rhtml: <%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %> .... Release Date: <%= datetime_select(:album, :release_date, :start_year => 1960) %><br /> .... and inside the controller: def edit_album @album = Album.find(params[''id'']) end def proccess_edit_album @album = Album.find(params[:id]) @album.update_attributes(params[:album]) if 1 redirect_to :action=> ''list_album...
2006 Jun 17
2
problem with select_date
In my form I have these items: <%= select_year Date.today, :start_year => Schoolyear.get_startdate.year, :end_year => Schoolyear.get_enddate.year %> <%= select_month Date.today.month %> No matter what I do, in my controller I can''t seem to access the selected year and month. I have tried params[:month].to_s and also params[:d...
2011 Feb 28
0
MultiDimensional arrays
...cessful_foraging_cycle_daily" DaysToMonth365 <- c(0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365) DaysToMonth366 <- c(0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366) Lyear <- isLeapYear(2000:2009) # returns boolean vector TRUE FALSE for years in sequence start_year<- 1999 # we process 11 years with 265 daily data records in a 287 x 405 row x column map. for(t in 1:11) { currentYear = start_year + t leapYear <- isLeapYear(currentYear:currentYear) # returns boolean vector TRUE FALSE for years in sequence #print(leapYear) Days<-Days...
2011 Mar 26
0
NetCDF - rolling means and StdDev
..., 365) DaysToMonth366 <- c(0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366) Lyear <- isLeapYear(2000:2009) # returns boolean TRUE FALSE vector for years in sequence # next function is used latter in script see line 50 processMonth<-function(x){ print(x) } start_year<- 1999 # initiates 1 year before to capture December of correct year, next line uses the for loop to run thru # the number of years. Here 3 is used to limit the number used in a testing mode. for(t in 1:3) { currentYear = start_year + t leapYear <- isLeapYear(currentYear:currentYea...
2007 Apr 14
1
how to add class to date_select helper
Hi, I have this helper and would like to add a html class to each of the select box''s it generates, however I have been unable to find a way? <%= f.date_select ''date_of_birth'', :order => [:day,:month,:year], :start_year => 1940, :end_year => Time.now.year, :include_blank => true %> Any suggestions? thanks john -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:...
2008 Jan 12
2
Problems with date field
Hi, I''m creating a date type field to put birthdate, but the years on this field only go to 2003, what should I do?? --~--~---------~--~----~------------~-------~--~----~ 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
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
...ders normal selection boxes with order year, month and day. Why :order does not work with datetime_select? see my following code <%= datetime_select(:user2, :date_of_birth, :discard_hour => true, :start_year => 2000, :end_year => 1910, :order => [:day, :month, :year]) %> here :order is ineffective. Also I want to add id for every select box generated, Please tell em if there is any way to do th...
2005 Oct 20
3
Missing id on date_select (0.14.1)
...<%= text_field ''credit_card'', ''account'' %> <label for="credit_card_expires_on">Expires on</label> <%= date_select ''credit_card'', ''expires_on'', :discard_day => true, :start_year => start_year, :end_year => end_year %> expands to this: <label for="credit_card_account">Account</label> <input id="credit_card_account" name="credit_card [account]" size="30" type="text" value=&quot...
2012 Sep 22
1
formtastic does not save at all
...39;'airline'' %> </div> <div id="flight_name"> <%= render :partial => ''flight_name'' %> </div> <%= f.input :day_departure, :as => :date_select, :hint => ''Select a date'', :start_year => Time.now.year, :label => "Departure date" %> <%= f.input :weight %> <%= f.input :check_in %> <% end %> <%= f.actions do %> <%= f.action :submit, :button_html => { :class => "btn btn-large btn-primary" } %> <...
2008 Jun 26
2
Problem with date_select after Rails 2.1 upgrade
...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( ''context'', ''start_date'', {:start_year => 2007, :order => [:month, :day, :year], :use_short_month => true, :include_blank => false}) vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb: 655:in `select_year'' vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb: 655:in `send''...
2004 Jul 31
3
Bug in new_work_item
...ion failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby 1.8.2 (2004-07-29) [i386-mswin32] abnormal program termination Here''s test.rb: require "win32/taskscheduler" include Win32 p TaskScheduler::VERSION trigger = { "start_year" => 2009, "start_month" => 4, "start_day" => 11, "start_hour" => 7, "start_minute" => 14, "trigger_type" => TaskScheduler::DAILY, "type" => { "days_interval" => 1 } } ts...
2007 Jan 23
7
Ajax
...nstitucion:</strong><%= text_field (''e[]'',''institucion'') %></td> <td><strong>A&ntilde;o:</strong> <% if false %> <%= date_select(''e[]'', ''ano'', :start_year => 1960,:discard_day => true, :discard_month => true)%><% end %> </td> <td> <%= link_to_remote ''Eliminar Estudio'', :url=>{:action => ''eliminar_estudio'', :id => @persona, :estudio_id...