Thanks, now its clear to me...

On 3 Mai, 09:57, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Sábado, 1 de Mayo de 2010 21:36:03 Atastor escribió:
>
> > Check out the following controller:
>
> > class ShowsController < ApplicationController
> >   active_scaffold :show do |config|
> >     config.columns=[:wrong]
> >     config.columns[:wrong].form_ui=:checkbox
> >     config.columns[:wrong].inplace_edit=true
> >   end
> > end
>
> > If you uncheck the value in edit-mode, its correctly reset to false,
> > if you uncheck the value inplace, its reset to nil. Bug or behaviour?
>
> If you don't want null values, disallow null in your migration. Checkbox is
> used by default in boolean columns which can't be null, but columns which can
> be null use a select box in order to set null, 0 or 1
>
> --
> 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 
> athttp://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