Hi, I'm only a few weeks into Hobo, but I've managed to get pretty much everything I want into an app I'm putting together except for what is the last major step.
It's basically a messaging site, with a few wrinkles. I want an 'InterestingMessages' page (i.e. http://the.site.url/InterestingMessages) that will display the messages collection but sort and filter them by a number of criteria. My (failed but tantalisingly close) attempt has gone as follows: * Added the following lines: * app/controllers/messages_controller.rb: def interesting; end * config/routes.rb: map.mymessages 'mymessages', :controller => 'messages', :action => 'interesting' * Copy the index-page definition from the messages section from pages.dryml into views/messages/interesting.dryml * Edit the def to be: <def tag="interesting-page"> (i.e. rename and remove for="Message") * Call <interesting-page/> It then fails with 'The @messages variable appear to be empty...' If I scrap all the dryml and simply place html code here all is good, so I'm assuming I'm most of the way there. So, if (and it's a big if at the moment) I'm on the right track, how do I get access to the messages variable to let me complete this altered index view? If I'm completely off-track, can someone let me know what approach I should be taking here? Thanks, Paul. -- 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.
