This works fine.   Now I'm trying to link the name of the item to the show page 
of the rental.  The rental is really just an aggregator - it belongs_to item, 
belongs_to user, has_many invoices, has_many payments.   But what it doesn't 
have is a name.   I want to list rentals, but have their item's name be the 
link.   I'm quite frustrated by trying to do this, because I expect its simple. 
  One thing I tried was to surround the <view:item/> with an <a:rental> tag -  
but a always seems to replace its context with what it surrounds.  I also just 
tried putting in the rental model:

def name
   item.name
end

I thought this was a good idea but it did not work - it recognized item, but 
not item.name.

Mark



On Jan 23, 2011, at 7:59 PM, kevinpfromnm wrote:

> not sure how this.item is working since it's not a real tag... but, you don't 
> want to refer to 'this' in the context change.
> 
> <a:item />
> 
> <view:item.serial />

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