Hi All!

I have a little bit of a problem here with the customization of
my :include.
There are 3 tables: users, statuses and messages. Users have many
statuses and messages.
I had to get xml with all users, each having nested messages and
statuses linked by id.

That thing works
  def index
    hobo_index   do |wants|
            wants.xml   {
                    render :xml => ( @users.to_xml :include =>
[:statuses, :messages])
                        }
      wants.html {   }
    end
  end

But now I need to take only the last record (that has most recent
timestamp) from statuses belonging to parent user, but I can't figure
out how to pass that parameter to hobo...

Thanks very much in advance!

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