I have a simple controller that takes a request, looks up some data
and then returns the results as either HTML or Atom. The HTML response
works fine, but the Atom Builder is blowing up with an undefined
method error that I can't figure out. It seems to be failing when the
ActiveRecord instance is passed to the 'entry' method and it tries to
build the URL via the 'polymorphic_url' method. There is no
'order_url' method, field or database column, so I'm at a loss.
Error message - undefined method `order_url' for #<ActionView::Base:
Code snippet that's failing (line 7) -
5: for order in @orders
7: feed.entry(order) do |entry|
Stack trace of failure -
I'm running Ruby 1.8.6 on Mac OS X 10.5.7. Thanks.