On 10/30/2011 5:02 PM, Matt Jones wrote:
On Oct 30, 2011, at 2:40 PM, Donald R. Ziesig wrote:
On 10/29/2011 8:39 PM, Matt Jones wrote:
On Oct 29, 2011, at 1:38 PM, Donald R. Ziesig wrote:
Hi Again!
I hate to be a PITA, but one more issue:
<extend tag="nav-item">
*
*
*
</extend>
works in RC2, but produces:
undefined method `nav_item' for class `#<Class:0xaeb1a54>'
in RC3.
The original def tag for nav-item is in the RC3 file
gems/hobo-1.3.0.RC3/lib/hobo/rapid/taglibs/rapid_navigation.dryml, as in the
RC2 file gems/hobo-1.3.0.RC2/lib/hobo/rapid/taglibs/rapid_navigation.dryml
but I can't seem to make it visible to application.dryml (where I include the
file that extends nav_item) in the RC3 code.
Ideas anyone?
I can't seem to reproduce this, even when doing things that I would have suspected would cause it
(extending the tag before it's included, for instance). I was able to produce the same error, but only
when I commented out the<include src="rapid" gem="hobo"/> line in
application.dryml - not something I suspect is applicable to your situation.
Can you be more specific about the order of files that causes this problem?
--Matt Jones
I can reproduce this in multiple apps with multiple configurations, the
simplest being an app that accepts the defaults in setup_wizard (where
possible) and is a no-invite, with admin subsite.
Matt's reply pointed me to application.dryml which in all of the sites I
generated contains only one line:
<!-- Global taglib - these tags are shared across all subsites -->
<eof>
I had been adding the line:
<include src="taglibs/nav_item"/>
which points to an existing dryml file hav_item.dryml in the tablibs directory.
As soon as I put this line in, I got the error.
Matt said he commented out<include src="rapid" gem="hobo"/> which does not
exist in the original application.dryml, so I added that line giving me an application.dryml that looks
like this:
<!-- Global taglib - these tags are shared across all subsites -->
<include src="rapid" gem="hobo"/>
<include src="taglibs/nav_item"/>
<eof>
I restarted the app and it works.
So where did the line<include src="rapid" gem="hobo"/> go between RC2 and RC3?
Just tried this out - for an app with an admin-site *and* the "make separate
front_site.dryml" option, the application.dryml containing the<include> is moved to
front_site.dryml and a blank application.dryml (like yours above) is created.
The generated admin_site.dryml also contains an<include src="rapid" gem="hobo"
/>; so both subsites get the needed definitions, but extending Rapid tags in application.dryml will
fail as the taglib hasn't been loaded yet there.
I'm a little baffled as to how this worked before, but I'm disinclined to call it a
"bug" exactly. To be honest, it's weird enough that you can write:
<extend tag="nav-item">
FOO
</extend>
<include src="rapid" gem="hobo"/>
and not get an error.
There's some other things about the current behavior of copying application.dryml to
front_site.dryml that I'm not entirely happy with - the incorrect comment in front_site.dryml
is annoying. A cleaner solution would be to have the generator snip out the comment and
the<include src="hobo"> (to move it to the new application.dryml).
I've got slack time @ work tomorrow, so I'll see if I can get this change
working.
--Matt Jones
Matt, it has been so long since I set this up initially that I can't
remember what I did to make it work with RC2. I do remember having to
hack, and hack, and hack ...( many hours worth) ;-) till I got it to
work, though. I may have copied the hobo gem line from a test site that
worked and then promptly forgot what I did.
Thanks for the hint.
Don Z.
--
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.