Thanks for the idea! WIth a name method added to the Doc model I get the 
following error instead:

 NoMethodError in ListsController#update

undefined method `find_by_name' for #<Class:0xb57dab30>
________________________________________
From: [email protected] [EMAIL PROTECTED] On Behalf Of blizz [EMAIL 
PROTECTED]
Sent: Wednesday, October 29, 2008 4:49 PM
To: Hobo Users
Subject: [Hobo Users] Re: AR error submitting an edit form with a has_many 
:through model  without a "name" field

This may not solve your problem but I usually add a name method to any
models that don't have a name field.

def name
  (make it a little more descriptive here, title field, partial
content etc...)
end

It would make the dropdown easier for the user.

Brett



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