It's very probable that feature is added in a later version. You will have to 
add a helper override

On Viernes, 24 de febrero de 2012 08:00:02 DZantow escribió:
> I'm not sure. This is an old, vendored version; the only version info
> I can see readily is from a README file, where it says
>   Rails 2.2.*: Active Scaffold rails-2.2
> as the highest version number.
> 
> I don't know what "protype or jquery" means, though I don't think
> jquery is involved here.
> 
> On Feb 24, 4:27 am, Sergio Cambra <[email protected]> wrote:
> > On Jueves, 23 de febrero de 2012 09:01:51 DZantow escribió:
> > > We have some tables with two dates, a start date and end date
> > > (valid_thru). The end
> > > date is expected to be empty unless there is an actual termination
> > > date for the item. When we load the tables from .csv files, we can
> > > create them in this fashion. But in our on-line entry screen, we get
> > > a
> > > pulldown list that I think is created by ActiveScaffold. It does not
> > > allow a null entry and defaults to the current date.
> > > 
> > > Does anyone know a way to change that behavior for the termination
> > > date field to allow a null entry, or to force the initial value to
> > > be
> > > null?
> > > 
> > > I've tried adding this line to the controller:
> > >     config.columns[:valid_thru].options[:include_blank] = true
> > > 
> > > ... but that doesn't seem to have any effect by itself. From what
> > > I've
> > > read, the helper may come into play. If I do something like this:
> > >   def valid_thru_form_column(record,input_date)
> > >     date_select:record,:valid_thru,:include_blank=>true
> > >   end
> > >   def valid_thru_column(record)
> > >     record.valid_thru ? "${record.valid_thru}":""
> > >   end
> > > ... will that have the intended effect?
> > 
> > Which ActiveScaffold version? prototype or jquery?

-- 
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