Hi, I had this problem for about a week now, and I am getting nowhere.
On my index page I have added a form that updates a collection when submitted. Problem is that I get an error if the collection does not get's passed the objects directly - with="&Catgory.all" <form with="&Category.new" update="categories"/> <collection with="&Category.all" part="categories"/> I have confirmed that the @categories is set and valid. Further more I switch to hobo edge, but with no result. Any help is highly welcome. NoMethodError (undefined method `empty?' for #<Category:0x105a2ee18>): vendor/plugins/hobo/hobo/lib/hobo/find_for.rb:48:in `method_missing' vendor/plugins/hobo/hobo/taglibs/rapid_generics.dryml:34:in `collection' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:328:in `_tag_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:328:in `_tag_context' vendor/plugins/hobo/hobo/taglibs/rapid_generics.dryml:33:in `collection' app/views/categories/index.dryml:5:in `categories_part' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' app/views/categories/index.dryml:5:in `categories_part' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:169:in `send' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:169:in `refresh_part' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:267:in `new_object_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:255:in `new_object_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:186:in `with_part_context' vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:168:in `refresh_part' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:92:in `__instance_exec0' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:87:in `each' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:87:in `__instance_exec0' vendor/plugins/hobo/hobo/lib/hobo/model_controller.rb:819:in `render' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:85:in `ajax_update_response' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:73:in `hobo_ajax_response' vendor/plugins/hobo/hobo/lib/hobo/model_controller.rb:573:in `create_response' vendor/plugins/hobo/hobo/lib/hobo/model_controller.rb:571:in `create_response' vendor/plugins/hobo/hobo/lib/hobo/model_controller.rb:526:in `hobo_create' app/controllers/categories_controller.rb:12:in `create' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:23:in `call' vendor/plugins/hobo/hobo/lib/hobo/controller.rb:23:in `included_in_class' Rendered rescues/_trace (121.4ms) Rendered rescues/_request_and_response (3.6ms) Rendering rescues/layout (internal_server_error) Best regards Asbjørn Morell. -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
