search for: discard_day

Displaying 10 results from an estimated 10 matches for "discard_day".

2009 Mar 13
2
date_select and HTML options?
...9;'t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn''t want to jump to conclusions. Anyone see anything wrong: <%= f.date_select :expiration_date, :order => [:month, :year], :discard_day => true, :class => "dtfld" %> I''ve also tried: <%= f.date_select :expiration_date, {:order => [:month, :year], :discard_day => true}, :class => "dtfld" %> --~--~---------~--~----~------------~-------~--~----~ You received this message because y...
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...</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"=>"", "card_type"=>"Mastercard", "password_confirmation...
2006 Mar 21
5
Getting a time select input
...me_select would work if I could get rid of the date part, there is no time_select helper! And I have tried adding the :discard option but it does not get rid of the year... <%= datetime_select("search", "start_time", { :discard_year => true, :discard_month => true, :discard_day => true }) %> Can anyone clue me in :) Kris. -- Posted via http://www.ruby-forum.com/.
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 Mar 21
5
Use select_date for my model?
Hi all I have a model "party" that has a time field "starts_at". I have created a form to add new instances of this model. <%= select_date Date.today, :prefix => ''party'' %> Sadly I get the error: NoMethodError in Parties#add undefined method `month='' for #<Party:0x256a600> How can I fix this problem? I remember that I saw in
2006 Feb 05
0
How can i specify default time to datetime_select tag
...w) datetime_select = select_year(datetime, options_with_prefix.call(1)) datetime_select << select_month(datetime, options_with_prefix.call(2)) unless options[:discard_month] datetime_select << select_day(datetime, options_with_prefix.call(3)) unless options[:discard_day] || options[:discard_month] datetime_select << '' &mdash; '' + select_hour(datetime, options_with_prefix.call(4)) unless options[:discard_hour] datetime_select << '' : '' + select_minute(datetime, options_with_prefix.call(5)) unless...
2005 Oct 20
3
Missing id on date_select (0.14.1)
...gt;Account</label> <%= 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=&q...
2006 Jun 16
3
finding out about options
I''ve been to the RoR api docs trying to find out about options for various methods (mostly for select helper methods), yet I find no listing of options even when the method described says that it takes options. How can I find out what are valid options say for a date_select tag? Thanks, Dave
2007 Oct 13
5
default date for date_select
Hi, How can I set a default date for a date_select? I''m trying to do something along the lines of: <%= date_select("requirement", "target_date", :end_year => 2020, :discard_day => true, :include_blank => true, :order => [:month, :year], :default => {:month => 10, :year => 2012 }) %> but the default that comes up on the form is blank month and blank year. Thanks, Tony --~--~---------~--~----~------------~-------~--~----~ You received this message b...
2007 Jan 23
7
Ajax
...gt;<%= 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 => @e},...