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

requests are
on update:
Processing ObjectCardsController#update (for 127.0.0.1 at 2010-06-26
22:11:27) [PUT]
  Parameters: {"commit"=>"Обновить запись",
"authenticity_token"=>"+rD7OEo6liqEjjsoQQU3GRn9nTvyNs8/soGxzKCnd0M=",
"id"=>"3", "associated_id"=>"", "_"=>"",
"record"=>{"base_price_date(3i)"=>"19",
"buidling_object"=>{"name"=>"Реконструкция канализационного коллектора
Северного жилого района до очистных  сооружений канализации,
г.Благовещенск", "fcp_subprogram"=>"", "id"=>"3", "dcp"=>"",
"dcp_subprogram"=>"3", "fcp"=>"2"}, "power"=>"", "cost_in_base_prices"=>"148
800.0", "base_price_date(1i)"=>"2006", "base_price_date(2i)"=>"1"}}

on create:
Processing ObjectCardsController#create (for 127.0.0.1 at 2010-06-26
22:12:25) [POST]
  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)"=>""}}


How do you think, what can be wrong?

2010/6/23 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>

>
> ObjectCardsController.active_scaffold_config.columns[:base_price_date].options[:end_year]
> = Time.now.year
>

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