I've spent 3 hours reading online trying to find a definitive fix for
what's going on here. as far as my setup i have:

*** LOCAL GEMS ***

actionmailer (2.3.14, 2.3.5, 2.2.2)
actionpack (2.3.14, 2.3.5, 2.2.2)
activerecord (2.3.14, 2.3.5, 2.2.2)
activeresource (2.3.14, 2.3.5, 2.2.2)
activesupport (2.3.14, 2.3.5, 2.2.2)
hobo (1.0.3)
hobofields (1.0.3)
hobosupport (1.0.3)
rack (1.1.2, 1.0.1)
rails (2.3.5)
rake (0.8.7)
will_paginate (2.3.16)


here are my models:

class Item < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
    name :string
    price :decimal
    description :text
    food_class
enum_string(:appetizer, :entree, :dessert, :side, :drink, :other)
  end

  belongs_to :menu
# has_many :order_assistants
#  has_many :orders, :through => :order_assistants, :accessible =>
true


class Order < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
    name  :string, :default => "My Order"
  end

  belongs_to :user, :creator => true
# has_many :order_assitants
# has_many :items, :through => :order_assistants, :accessible => true


class OrderAssistant < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
  end

# belongs_to :order
# belongs_to :item


class Menu < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
    name    :string
    phone_number  :string
    address     :string
  end


  has_many :items, :dependent => :destroy
  has_attached_file :logo, :styles  => {:small => "200x200>", :tiny =>
"75>x100"}


and in my menu viewhints i have children :items.

If I run the site as is, with the above marked lines commented out,
everything is fine. If I try to setup my many to many relationship
through the order_assistant model, everything breaks! I can't even
view my menu page. I should also mention I have auto_actions_for :menu
setup in my items controller.

I've found documentation suggesting this is because of a bug; if
that's the case there must be a patch!? I'm fairly confident I have my
many to many relationship setup right. that being said I can't figure
out what's wrong.

Please advise!!

many thanks,
hoboHippy

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

Reply via email to