the dryml guide still helps, it teaches you how to do inserts and
additions to parameters without replacing the whole page/tag.
take a look at app/views/taglibs/auto/rapid/pages.dryml and look for
the index page for recipes. it should show you the basic structure
and given you an idea of where you can insert/replace/add content in
that page. Don't bother changing anything in there, it's all auto
generated.
make your changes to app/views/recipes/index.dryml, creating it if it
doesn't exist. my tip is to start out with a big change on that file
to make sure you're doing the right one, like I usually create it and
leave just the word test in it. when I reload the page, it should
just show test with nothing else.
next, take a step back (figuratively) and change test to <index-page /
> and refresh. should go back to the way it was before adding your
file.
now, you can start making changes. if you've gone through the dryml
guide, you know you can replace or add to any parameter in a tag
without changing everything else. a likely candidate on index pages
is the collection parameter.
<index-page>
<before-collection:>
testing
</before-collection:>
</index-page>
hopefully, that gets you started on the right track.
On Jul 30, 5:33 pm, Mark Sobkowicz <[email protected]> wrote:
> After going through the tutorials, I decided to re-make the "Recipes" app
> from the "Four-Tables" tutorial for my own extended family's use, and take it
> through the whole development, deployment, adjustment cycle. I got a long
> way toward making it look the way I wanted, and then struck my personal brick
> wall with DRYML.
>
> I decided that the index page for the app should have a little information on
> it, so I decided to have the three most recently posted recipes appear (just
> names, and who posted them), along with the three most recent requests (A
> model I added for people to request recipes from others). And so I looked
> at the DRYML I already had, and hit the wall. I had no idea how to do it.
> I had nothing I could even try. The recipes were too specific to the
> one-page-one-model (or one-page-one-model-plus-children) views in the
> tutorials. And the DRYML guide starts by warning the reader that in fact it
> won't help in the actual making of Hobo views since the real stuff is in the
> Rapid Library.
>
> Ironically, I was able to make it all happen with good old rails, by adding
> some finds in the controller for the page and some html w/ erb on the view
> page. But I'd really like to understand DRYML enough to do it. Can someone
> feed me a few lines of the DRYML needed to make this particular thing happen?
>
> If you want to see what I mean, I deployed an unfinished version (for my kids
> to try and break) at
>
> http://computer.lsrhs.net/recipes
>
> and you can see what the index page looks like. I think my next task will
> be to try and learn DRYML from the bottom up from the manual. Here goes...
>
> Thanks for all the help past and future,
>
> Mark Sobkowicz
--
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.