It's basically a pass through to rails helpers. So anything in 
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001698
will work.

You can do it in a helper (covers question #1) e.g. :
  def start_date_form_column(record, input_name)
    date_select :record, :start_date, :include_blank => true, :name => 
input_name, :start_year => 1991
  end 

Or in the controller (covers #2 if you want to just use an empty field 
for your EXEMPT):
config.columns[:maturity_date].options = {:html_options => 
{:include_blank => true}}

You can use :default if you want a different EXEMPT value.

Regards,
Kerry


Soren Christensen wrote:
> Hi,
>
> Where is the doc on the date input fields ?
>
> I need to be able to:
>
> 1) Control the period of time being offered on a date input field.
>     10 years back - not 5 years in both directions from today.
>
> 2) Add an additional item to the date.
>     In this case I need an EXEMPT value to be show - the value for 
> EXEMPT can be anything or perhaps just the zero date (was it sometime in 
> '69?)
>
> Does anyone know how to do this ?
>
> /S
>
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to