On Sábado, 26 de Junio de 2010 14:34:06 Andrey Voronkov escribió:
> So strange, when I update record - all is fine - all two validations on
> date pass (present and on date), but on create all validations has errors
> (empty and invalid date).
Try to set :include_blank => false in column options
>
> requests are:
> on create:
> Parameters: {"commit"=>"Создать запись",
> "authenticity_token"=>"+rD7OEo6liqEjjsoQQU3GRn9nTvyNs8/soGxzKCnd0M=",
> "associated_id"=>"", "_"=>"", "record"=>{"base_price_date(3i)"=>"",
> "buidling_object"=>{"name"=>"", "fcp_subprogram"=>"", "dcp"=>"",
> "dcp_subprogram"=>"", "fcp"=>""}, "power"=>"1", "cost_in_base_prices"=>"1",
> "base_price_date(1i)"=>"1992", "base_price_date(2i)"=>""}}
>
> on update:
>
>
> 2010/6/23 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>
>
> > ObjectCardsController.active_scaffold_config.columns[:base_price_date].op
> >tions[:end_year] = Time.now.year
--
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.