Hi All
Aided by Tom's excellent new DRYML manual which cleared up quite a few
not so well understood areas I tried to apply some of my new
knowledge.
My customer would prefer the work 'Register' to 'Sign-up' and I have
managed to change it every where except the account-nav tag.
I have this code:
<extend tag='account-nav'>
<old-account-nav merge>
<sign-up:>
<li class='nav-item' param='sign-up' if='&signup_url
(user)'><a href='&signup_url(user)'>Register</a></li>
</sign-up:>
</old-account-nav>
</extend>
The <li> line was copied from the existing <account-nav> source, all
that has changed is the Sign-up -> Register.
When I render this I get this error:
Showing front/index.dryml where line #1 raised:
undefined method `user' for #<ActionView::Base:0xb35a635c>
Extracted source (around line #1):
1: <page title="Home">
2:
3: <body: class="front-page"/>
4:
RAILS_ROOT: /home/geoffd/projects/doyle
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/dryml/
template_environment.rb:574:in `send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/dryml/
template_environment.rb:574:in `method_missing'
app/views/taglibs/application.dryml:121:in `account_nav'
app/views/taglibs/application.dryml:120:in `account_nav'
app/views/taglibs/application.dryml:119:in `account_nav'
app/views/taglibs/application.dryml:118:in `account_nav'
app/views/taglibs/application.dryml:34:in `page_without_a7a00613d7b1'
app/views/taglibs/application.dryml:32:in `page_without_a7a00613d7b1'
Am I doing something wrong,or something I should not be doing?
Cheers
Geoff
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---