search for: end_year

Displaying 20 results from an estimated 24 matches for "end_year".

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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the...
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/.
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[:date][:month], plus anything I could come up with, but so far n...
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
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 because you are subscribed to the
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: Talk" group. To...
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
...oes 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 that. Regards, Anil Wadghule -- Don''t live to geek; geek to l...
2005 Oct 20
3
Missing id on date_select (0.14.1)
...'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="" /> &lt...
2006 Jun 13
0
date_select and date validation
Hi, I''ve put together a simple form that contains among other things a date_select: <%= date_select(:user, :dob, :order => [:day, :month, :year], :start_year => 1900, :end_year => Date.today.year) %> In my controller I have some code to create a user entity from the parameters posted up from the form, like so: parameters: {"user"=>{"dob(1i)"=>"2006", "dob(2i)"=>"2", "dob(3i)"=>"31"}}...
2006 May 24
2
Only years from 2001 to 2011 are available in a date field
When I try to edit a date field in the drop down list I have only years from 2001 to 2011: how can I add an arbitrary year that is NOT included in this list? -- Posted via http://www.ruby-forum.com/.
2006 Apr 10
1
Bizzare Date, DateTime, date_select issues
...urrentyear = DateTime.now.year %> And then further down several date_selects like the following, <%= date_select "member", "last_medical_date", :id => "member_last_medical_date", :order => [:year, :month, :day], :start_year => (currentyear - 5), :end_year => currentyear %> <label for="member_last_medical_date">Date of Last Medical Exam (YYYY/MM/DD)</label><br> The first statement subsequently stopped working! Now with that statement I get a "ArgumentError" where the DateTime.now.year has raised an...
2006 Feb 18
0
indexed date_select
...[]", "category", [ "Fiction", "Non-Fiction", "Poetry", "First-Boak", "Translation" ], { :include_blank => false }) %></td> <td><%= date_select("award[]", "year", :start_year => 2007, :end_year => 1980, :discard_month => true, :include_blank => false) %></td> </tr> <% end %> This outputs: <tr> <td><select id="award_9_category" name="award[9][category]"><option value="Fiction">Fiction</option>...
2006 Jan 20
0
Problem with updating model
...ot;, ''password'', :size => 30 %> <%= password_field "edituser", ''password_confirmation'', :size => 30 %> <%= date_select("edituser", ''birthday'', :order => [:day, :month, :year], :start_year => 1931, :end_year => 2001) %> <%= end_form_tag %> == controller def edit @edituser = User.find_first(["id = ?",params[:id]]) if @request.post? if not @edituser.nil? @edituser.login = @params[:edituser][:login] @edituser.birthday = @params[:edituser][:birthday] @editus...
2008 Jun 17
0
how to set tabindex in date_select
<%= date_select(''user'', ''birthdate'', { :start_year => 80.years.ago.year, :end_year => 12.years.ago.year } ) %> work in rails 1.2.2 date_select(object_name, method, options = {}) I try many times but also didn''t know how to set tabindex in date_select --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed...
2008 Feb 26
2
Specify HTML options on select_year
Rails 1.2.3 It appears that the select_year helper doesn''t accept HTML attributes as part of the options array. Does anyone have a way to successfully pass an :onchange attribute in to the select_year helper? I''m going to do it with Javascript directly for now. Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2006 Apr 19
1
AJAX - update item forms problem
...39;', ''description'', :rows => 3 %></p> </td> <td> <p><label for="workout_started_at">Start time</label><br/> <%= datetime_select ''workout'', ''started_at'', :start_year => 1980, :end_year => 2010 %></p> </td> </tr> </table><br/> <%= submit_tag "Update", :class => ''button'' %> or <span class="red"> <%= link_to_remote ''Cancel'', :url => { :action => ''h...
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr clock? I need to make a input field that works exactly like the reminders datetime selecton dropdowns in Backpack to populate a datetime field in my DB. i.e in the format: month, day, year ? hour (1-12) minute am/pm. Should I change my database to have a separate column for date and one for time and use date_select()? Can
2007 Apr 12
3
Radrails and date in mysql problem
Hi, Im using radrails and mysql database, im using DATE in mysql for a date of birth column, When i use this in Radrails the date shows as dropdown lists, the days and month are fine but the year list only shows 2002-2012. Is there any way of extending the years? as its not suitable for date of birth. Any help appreciated -- Posted via http://www.ruby-forum.com/.
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby