Thank you for the quick response, that leaves me with 3 questions.
1. How do I change the context in a dryml file like index.dryml? Can I
switch the context between models and pull different collections for each?
I was trying to work with collections but I had problems setting the context
as you said. I have been trying to figure out how to set the context but it
is not clearly laid out in the DRYML guide on the hobo site. It is kinda
vaguely mentioned.
2. Since the controller method is likely better how would I grab the records
in the controller?
I have tried:
auto_actions_for :front, :index
in the log controller
and several things such as
def index
hobo_show log
end
but haven't had any luck.
3. Where in the collections tag would I use ="&yourcollectionhere"? I tried
<collection="&yourcollectionhere"> and if I use param it tells me I have to
def a tag. The terminology can be confusing and clarification would help me
out a lot.
Thanks for your time,
Christian
On Thu, Nov 5, 2009 at 3:24 AM, kevinpfromnm <[email protected]> wrote:
>
> You need to either grab the records in the controller or the view.
> The <view:log /> shorthand means take the current context, grab the
> 'log' field and display the view tag using it (the log field) as the
> context.
>
> You either want to use with="&yourcollectionhere" or otherwise set the
> context before trying to call the tag. btw, you probably want a
> collection or table tag and not a view.
>
> On Nov 4, 8:12 pm, upisdown <[email protected]> wrote:
> > I am attempting to include a few collections into the layout of the
> > front page. I assumed this would be easy but I have spent several
> > hours trying to figure out how. The best I have been able to do is add
> >
> > (where log is the name of a model)
> >
> > <view:log />
> >
> > And I get (Not Available).
> >
> > I have tried to figure this out on the controller layer but since
> > front_controller does not have an associated model it is not clear
> > what I am able to use.
> >
> > Any suggestions?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---