That's the error you get when you try and pass a single element to a
table-plus instead of a collection.

<show-page>
  <collection: replace>
    <div>
      <table-plus:subaccounts fields="this,saldo_actual,transactional"/>
     </div>
  </collection:>
</show-page>

should work.

On Wed, Nov 9, 2011 at 8:28 AM, Quiliro Ordóñez
<[email protected]> wrote:
> I have been checking the forum and have used table-plus successfully on the
> index page. I would like to have a similar show view of the children records
> of a record in a parent model. Is there a way to do this? These are the
> models:
>
> account.rb
> name:string
> has_many :subaccounts
>
> subaccount.rb
> name:string
> belongs_to :account
>
> I need the show page for a record in Accounts to show the children records
> saved in Subaccounts in a table format. I tryed to do it with table-plus but
> it would give the error:
>
>
> NoMethodError in Zero_accounts#show
>
> Showing
> /archivos/respaldos/tutorial/el_contador/app/views/zero_accounts/show.dryml
> where line #4 raised:
>
> undefined method `member_class' for #<ZeroAccount:0xcf91fbc>
>
> Extracted source (around line #4):
>
> 1: <show-page>
> 2:   <collection: replace>
> 3:     <div>
> 4:       <table-plus fields="this,saldo_actual,transactional"/>
> 5:     </div>
> 6:   </collection:>
> 7: </show-page>
>
>
>
>
> Thank you for your input
>
> --
> 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.
>

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