Hello Sergio! I'd like to use datetime-columns that can be NULL in the database, where a value of NULL means 'unknown'. Whats the best way to get something like an unknown-checkbox into the create/edit UI? Should I use a form override and the controller's before_create_save to set the values to NULL when the checkbox was checked? Or can I just have the checkbox disable the <select>s using js, so that their values will be null when submitting the form? Whats the best way to do this?
Also, after updating AS to fix the deletion of HABTM associations (see mails from yesterday) I got a regression. The nested table showing a named scope (see thread "Using named_scopes_for_collection to filter nested scaffolds") shows up corrupted: http://img42.imageshack.us/img42/1958/asregression.png. This problem appears with both the rails-2.3 and the new master branch. The log shows this: Processing CatalogItemsController#similar (for 213.46.148.21 at 2010-03-10 16:17:55) [GET] Parameters: {"action"=>"similar", "_method"=>"get", "adapter"=>"_list_inline_adapter", "id"=>"1", "controller"=>"catalog_items"} CatalogItem Load (0.2ms) SELECT * FROM `catalog_items` WHERE (`catalog_items`.`id` = '1') LIMIT 1 Conjugate Load (0.2ms) SELECT * FROM `conjugates` WHERE (`conjugates`.`id` = 1) Fragment Load (0.2ms) SELECT * FROM `fragments` WHERE (`fragments`.`id` = 1) Isotypeh Load (0.2ms) SELECT * FROM `isotypehs` WHERE (`isotypehs`.`id` = 3) Origin Load (0.2ms) SELECT * FROM `origins` WHERE (`origins`.`id` = 2) SQL (0.5ms) SELECT count(DISTINCT `catalog_items`.id) AS count_all FROM `catalog_items` LEFT OUTER JOIN `markers` ON `markers`.id = `catalog_items`.marker_id LEFT OUTER JOIN `conjugates` ON `conjugates`.id = `catalog_items`.conjugate_id LEFT OUTER JOIN `fragments` ON `fragments`.id = `catalog_items`.fragment_id LEFT OUTER JOIN `isotypehs` ON `isotypehs`.id = `catalog_items`.isotypeh_id LEFT OUTER JOIN `origins` ON `origins`.id = `catalog_items`.origin_id WHERE (markers.name= "Isotype Control" AND catalog_items.conjugate_id = 1 AND catalog_items.fragment_id = 1 AND catalog_items.isotypeh_id = 3 AND catalog_items.origin_id = 2) CatalogItem Load IDs For Limited Eager Loading (0.4ms) SELECT DISTINCT `catalog_items`.id FROM `catalog_items` LEFT OUTER JOIN `markers` ON `markers`.id = `catalog_items`.marker_id WHERE (markers.name= "Isotype Control" AND catalog_items.conjugate_id = 1 AND catalog_items.fragment_id = 1 AND catalog_items.isotypeh_id = 3 AND catalog_items.origin_id = 2) ORDER BY `catalog_items`.`id` ASC LIMIT 0, 40 CatalogItem Load Including Associations (0.7ms) SELECT `catalog_items`.`id` AS t0_r0, `catalog_items`.`marker_id` AS t0_r1, `catalog_items`.`catalognumber` AS t0_r2, `catalog_items`.`concentration` AS t0_r3, `catalog_items`.`amount` AS t0_r4, `catalog_items`.`conjugate_id` AS t0_r5, `catalog_items`.`manufacturer_id` AS t0_r6, `catalog_items`.`isotypel_id` AS t0_r7, `catalog_items`.`origin_id` AS t0_r8, `catalog_items`.`created_at` AS t0_r9, `catalog_items`.`updated_at` AS t0_r10, `catalog_items`.`klone` AS t0_r11, `catalog_items`.`isotypeh_id` AS t0_r12, `catalog_items`.`fragment_id` AS t0_r13, `markers`.`id` AS t1_r0, `markers`.`name` AS t1_r1, `markers`.`created_at` AS t1_r2, `markers`.`updated_at` AS t1_r3, `markers`.`parent_id` AS t1_r4, `markers`.`lft` AS t1_r5, `markers`.`rgt` AS t1_r6, `conjugates`.`id` AS t2_r0, `conjugates`.`name` AS t2_r1, `conjugates`.`created_at` AS t2_r2, `conjugates`.`updated_at` AS t2_r3, `fragments`.`id` AS t3_r0, `fragments`.`name` AS t3_r1, `fragments`.`created_at` AS t3_r2, `fragments`.`updated_at` AS t3_r3, `isotypehs`.`id` AS t4_r0, `isotypehs`.`name` AS t4_r1, `isotypehs`.`created_at` AS t4_r2, `isotypehs`.`updated_at` AS t4_r3, `origins`.`id` AS t5_r0, `origins`.`name` AS t5_r1, `origins`.`created_at` AS t5_r2, `origins`.`updated_at` AS t5_r3, `manufacturers`.`id` AS t6_r0, `manufacturers`.`name` AS t6_r1, `manufacturers`.`created_at` AS t6_r2, `manufacturers`.`updated_at` AS t6_r3, `reactivities`.`id` AS t7_r0, `reactivities`.`name` AS t7_r1, `reactivities`.`created_at` AS t7_r2, `reactivities`.`updated_at` AS t7_r3, `isotypels`.`id` AS t8_r0, `isotypels`.`name` AS t8_r1, `isotypels`.`created_at` AS t8_r2, `isotypels`.`updated_at` AS t8_r3, `applications`.`id` AS t9_r0, `applications`.`name` AS t9_r1, `applications`.`created_at` AS t9_r2, `applications`.`updated_at` AS t9_r3 FROM `catalog_items` LEFT OUTER JOIN `markers` ON `markers`.id = `catalog_items`.marker_id LEFT OUTER JOIN `conjugates` ON `conjugates`.id = `catalog_items`.conjugate_id LEFT OUTER JOIN `fragments` ON `fragments`.id = `catalog_items`.fragment_id LEFT OUTER JOIN `isotypehs` ON `isotypehs`.id = `catalog_items`.isotypeh_id LEFT OUTER JOIN `origins` ON `origins`.id = `catalog_items`.origin_id LEFT OUTER JOIN `manufacturers` ON `manufacturers`.id = `catalog_items`.manufacturer_id LEFT OUTER JOIN `catalog_items_reactivities` ON `catalog_items_reactivities`.catalog_item_id = `catalog_items`.id LEFT OUTER JOIN `reactivities` ON `reactivities`.id = `catalog_items_reactivities`.reactivity_id LEFT OUTER JOIN `isotypels` ON `isotypels`.id = `catalog_items`.isotypel_id LEFT OUTER JOIN `applications_catalog_items` ON `applications_catalog_items`.catalog_item_id = `catalog_items`.id LEFT OUTER JOIN `applications` ON `applications`.id = `applications_catalog_items`.application_id WHERE (markers.name= "Isotype Control" AND catalog_items.conjugate_id = 1 AND catalog_items.fragment_id = 1 AND catalog_items.isotypeh_id = 3 AND catalog_items.origin_id = 2) AND `catalog_items`.id IN (92) ORDER BY `catalog_items`.`id` ASC Rendering list Rendered _list_column_headings (43.7ms) Rendered _messages (0.2ms) SQL (0.3ms) SELECT count(*) AS count_all FROM `available_tubes` WHERE (`available_tubes`.catalog_item_id = 92) Rendered _list_actions (4.9ms) Rendered _list_record (86.7ms) Rendered _list (134.1ms) Rendered _messages (0.2ms) Rendered _list_inline_adapter (1.4ms) Completed in 155ms (View: 2, DB: 0) | 200 OK [https://..../catalog_items/similar/1?_method=get&adapter=_list_inline_adapter] Do you already know what the problem is, or do I need to check which commit broke it? thanks! ben -- 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.
