It doesn't look like you didn't remove the association, it looks like you didn't remove the call to it somewhere, probably in some page/form/ overridding. Search for "supplier" in your app and you should find the call.
ciao dd On Fri, Nov 5, 2010 at 12:41 AM, Peter Ehrlich <[email protected]>wrote: > Hello! > > I'm getting an error that, I'm convinced, I really shouldn't be. I > have a model called Order and a model called Supplier. At one point, > Supplier 'belonged_to' Order and Order 'had_one' Supplier. This > association has been removed. However, when viewing /orders/new, I > get: "undefined method `supplier' for #<Order:0x1033e2ae8>". > > Default new page. Database fully migrated. I can remove all the > has_many associations, which makes it almost vanilla, and still get > the same error. > > Where's the universe splitting in two? Here's the trace. > > Many thanks, > --Peter > > Rails 2.3.8 > Ruby 1.8.7 > Hobo 1.0.1 > > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/ > activerecord-2.3.8/lib/active_record/attribute_methods.rb:264:in > `method_missing_without_find_for' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/find_for.rb:48:in `method_missing' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/hobo_helper.rb:322:in `send' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/hobo_helper.rb:322:in `can_view?' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_support.dryml:45:in `with_fields' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_support.dryml:45:in `select' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_support.dryml:45:in `with_fields' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_support.dryml:22:in `with_fields' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:33:in `field_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:32:in `field_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:377:in `call' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:377:in > `call_tag_parameter_with_default_content' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `call' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `method_missing' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/core.dryml:55:in `do_' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/core.dryml:55:in `do_' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:381:in `send' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:381:in > `call_tag_parameter_with_default_content' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:403:in `call_tag_parameter' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_document_tags.dryml:47:in `labelled_item_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_document_tags.dryml:47:in `labelled_item_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `call' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `method_missing' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:101:in `table' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:100:in `table' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `call' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/tag_parameters.rb:21:in `method_missing' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/core.dryml:78:in `if_' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/core.dryml:76:in `if_' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:100:in `table' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:99:in `table' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_document_tags.dryml:47:in `labelled_item_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_document_tags.dryml:47:in `labelled_item_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:32:in `field_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/actionpack-2.3.8/ > lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:248:in `new_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:328:in `_tag_context' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/ > taglibs/rapid_core.dryml:30:in `field_list' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:464:in `send' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:464:in `override_and_call_tag' > /Users/peter/.rvm/gems/ruby-1.8.7-p...@rails238b/gems/hobo-1.0.1/lib/ > hobo/dryml/template_environment.rb:427:in `call_tag_parameter' > app/views/taglibs/application.dryml:17:in `form__for_order' > app/views/taglibs/application.dryml:16:in `form__for_order' > app/views/taglibs/auto/rapid/forms.dryml:30:in > `form__for_order_without_a300ea4cdbac' > app/views/taglibs/auto/rapid/forms.dryml:28:in > `form__for_order_without_a300ea4cdbac' > app/views/taglibs/auto/rapid/forms.dryml:28:in > `form__for_order_without_a300ea4cdbac' > app/views/taglibs/auto/rapid/forms.dryml:27:in > `form__for_order_without_a300ea4cdbac' > app/views/taglibs/application.dryml:15:in `form__for_order' > app/views/taglibs/application.dryml:13:in `form__for_order' > app/views/taglibs/auto/rapid/pages.dryml:315:in `new_page__for_order' > app/views/taglibs/auto/rapid/pages.dryml:314:in `new_page__for_order' > app/views/taglibs/auto/rapid/pages.dryml:314:in `new_page__for_order' > app/views/taglibs/auto/rapid/pages.dryml:305:in `new_page__for_order' > app/views/taglibs/themes/clean/clean.dryml:2:in `page' > app/views/taglibs/themes/clean/clean.dryml:1:in `page' > app/views/taglibs/auto/rapid/pages.dryml:302:in `new_page__for_order' > app/views/taglibs/auto/rapid/pages.dryml:301:in `new_page__for_order' > > -- > 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]<hobousers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > > -- 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.
