Hi,

I'm also using rails 2.3.5 and calendar_date_select 1.15.

> config.columns[:enddate].form_ui = :calendar_date_select
> config.columns[:enddate].options = {:time => false}

This way, the time part disappears as expected.

Thanks,

ebi

2010/2/10 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> On Miércoles, 10 de Febrero de 2010 09:46:45 Atastor escribió:
>> Obviously not this way:
>>
>> config.columns[:enddate].form_ui = :calendar_date_select, { :time =>
>> false }
>>
>> als the effect is not the intended, time still shows up. I guess its a
>> silly error, but in case its not: I m using latest active_scaffold,
>> calendar_date_select gem 1.15 und rails 2.3.5.
>
> I don't use that plugin, and I haven't checked the code, but probably you have
> to set options for calendar_date_select using options:
> config.columns[:enddate].form_ui = :calendar_date_select
> config.columns[:enddate].options = {:time => false}
>
> I don't know if it's needed to set the form_ui, I think the bridge should set
> for all date and datetime columns. And probably if your column is a date
> column instead of datetime you won't get time.
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
> --
> 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.
>
>

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