Yep. My error has something to do with the refresh of the table-plus
that holds the memberships.

With :accessible => true in the belongs_to the membership is created.
The table throws an error refreshing. I'll try to dig it out later.

TF

On Dec 9, 8:07 pm, davidh <[EMAIL PROTECTED]> wrote:
> I'm back in business after the combination of a new git pull and
> placing :accessible => true only on the belongs_to lines of the
> relationship class.  Given your example of a group has many members
> through memberships, that would be the membership class.
>
> On a slightly related topic, I still found it necessary to patch <def
> tag="name-one"> in hobo/taglibs/rapid_forms.dryml as I described in
> this 
> thread:http://groups.google.com/group/hobousers/browse_thread/thread/69e2083...
> Otherwise the autocompleter only works when editing existing
> memberships, not when editing new ones.
>
> I've also noticed that in my model validation methods there is no way
> to distinguish between the case where an autocompleted association
> value is blank because the user left it blank on purpose and where it
> is blank because the user mistyped a name.  Or at least I haven't
> thought of a way yet.  This would be useful for catching typos in
> cases where the association is not mandatory.
>
> On Dec 9, 5:04 am, Tom Locke <[EMAIL PROTECTED]> wrote:
>
> > Whenever you don't have :accessible => true somewhere where you need  
> > it, you will get an exception like:
>
> > > ActiveRecord::AssociationTypeMismatch (User expected, got String):
>
> > So that is *probably* the problem
>
> > Tom
--~--~---------~--~----~------------~-------~--~----~
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