Hi all; I'm posting this here not only so I can Google myself later, but because it was an interesting little problem I hit when asking Hobo's <table-plus> tag to render a particular collection I had.
For this example, I had two models: "Entity" and "Parties". An Entity has_many Parties. For the Entity, though, I also created a named collection of parties called "directors": has_many :directors, class_name: 'Party', :inverse_of => :entity When I asked <table-plus> to render my collection of Directors: with="&this.directors" ActiveRecord balked with: undefined method `map!' for #<Party::ActiveRecord_Associations_CollectionProxy The quick fix was: with="&this.directors.all" to force the collection to be loaded immediately. And now I know a little about CollectionProxies <http://api.rubyonrails.org/classes/ActiveRecord/Associations/CollectionProxy.html> . Tim -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/d/optout.
