Thanks for the tip. I was going after (and in fact have) the latter code:

 <index-page>
 <content-body:>
   <a action="new" to="&model"/>
   <br class="clear-both" />
   <collection/>
 </content-body:>
 </index-page>

I wasn't sure why I couldn't replace this line: <a action="new"
to="&model"/> with this: <new-link:/>. According to the nested params
section of the DryML guide, I need to omit the colon to make the line like
this:  <new-link />, since I'm calling a tag, not customizing an existing
call. However, this produces the following error:

undefined method `new_link' for #<ActionView::Base:0xb60ad424>

Oh well, it's not a big deal to have <a action="new" to="&model"/> instead
of <new-link:> in the big scheme of things :~).

On Fri, Feb 13, 2009 at 4:11 AM, Scott Bronson <[email protected]> wrote:

>
> I declare this Hobo's most notorious error message.  :)
>
> It means exactly what it says...  Hobo doesn't allow you to mix
> parameters and tags in the same tag since it's ambiguous (or at least
> misleading) how they would be laid out.
>
> First, maybe get acquainted with nested parameters:
> http://cookbook.hobocentral.net/manual/dryml-guide#nested_parameters
>
> Now, I'm not quite sure your intent, maybe this?
>
>  <index-page>
>  <content-body:>
>    <new-link:/>
>    <page-nav:><br class="clear-both" /></page-nav:>
>    <collection:/>
>  </content-body:>
>  </index-page>
>
> (of course, <new-link:/> and <collection:/> are redundant since
> they'll be filled in anyway)
>
> Or this?
>
>  <index-page>
>  <content-body:>
>    <a action="new" to="&model"/>
>    <br class="clear-both" />
>    <collection/>
>  </content-body:>
>  </index-page>
>
>
>
> On Wed, Feb 11, 2009 at 8:18 AM, Andrew Shindyapin
> <[email protected]> wrote:
> >
> > So I have an index page that I tweaked for a resources called
> > CodeTests. This is the original, auto-generated index-page for
> > CodeTests:
> >
> > <def tag="index-page" for="CodeTest">
> >  <page merge title="Code Tests">
> >    <body: class="index-page code-test" param/>
> >    <content: param>
> >      <header param="content-header">
> >        <h2 param="heading">Code Tests</h2>
> >        <p param="count" if>There <count prefix="are"/></p>
> >      </header>
> >      <section param="content-body">
> >        <a action="new" to="&model" param="new-link"/>
> >        <page-nav param="top-page-nav"/>
> >        <collection param/>
> >        <page-nav param="bottom-page-nav"/>
> >      </section>
> >    </content:>
> >  </page>
> > </def>
> >
> > So I tweaked the page as follows:
> >
> > <index-page>
> >  <content-body:>
> >    <!-- new-link: (doesn't work!) / -->
> >    <a class="new-link" action="new" to="&model">New Code Test</a>
> >    <br class="clear-both" />
> >    <collection />
> >  </content-body:>
> > </index-page>
> >
> > However, when I use <new-link: />, I get an error about "mixed
> > parameter tags and non-parameter tags (did you forget a ':'?) -- at
> > app/views/code_tests/index.dryml:2" you can see the full error page
> > here: http://gist.github.com/62098. Whenever I replicate the link from
> > the original auto-generated index-page (as shown above), it works as
> > expected.
> >
> > Can anyone shed any light on this error?
> > >
> >
>
> >
>

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