Error when extending page tag

7 views
Skip to first unread message

Greg

unread,
Feb 3, 2010, 12:19:37 AM2/3/10
to Hobo Users
Whenever I try and use the <extend tag="page"> in the (apps/views/
taglibs/application.dryml) I get this error:


NameError in Front#index

Showing app/views/front/index.dryml where line # raised:

undefined method `page' for class `#<Class:0x879cbe4>'

I've tried this on 2 computers using Instant Rails (2.3.5) and Hobo:
0.9.10 and have been going through the tutorial fine until I ran in
this problem.

Any help would be much appreciated!


Bryan Larsen

unread,
Feb 3, 2010, 8:32:04 AM2/3/10
to hobo...@googlegroups.com
Perhaps every single one of my Hobo apps does this. Can you post your
application.dryml file so we can see what's different about yours?

thanks,
Bryan

Greg Lindberg

unread,
Feb 3, 2010, 11:46:01 AM2/3/10
to hobo...@googlegroups.com
Here is my application.dryml file:

<def tag="app-name">Ppb11</def>

<extend tag="page">
 <content: replace>
  <section-group>
  <section><content restore/></section>
   <aside><sites-menu/></aside>
  </section-group>
  </content:>
</extend>

The <content:...> section works fine when it's in the show.dryml file but not in the application.dryml. I also tried just a simple <extend tag="page"></extend> but that also blows up. I started a fresh app and the extend tag works fine so I'm not sure how this one is acting funny. I suppose I'll trying running through the tutorial from scratch and keep testing along the way unless someone can think of anything else to check.

Greg


--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.


Bryan Larsen

unread,
Feb 3, 2010, 12:02:10 PM2/3/10
to hobo...@googlegroups.com
I was hoping that the "other funny stuff" was also in the
application.dryml, which is why I asked for the whole file rather than
just the snippet.

You seem to be missing the

<old-page merge>

portion in your snippet. Could that be what's causing your problem?

I would write <content: restore> rather than <content restore>, but it
appears that both work, and I'm not sure which was Tom's intended syntax
-- both are mentioned in the DRYML manual.

Bryan

> <mailto:hobo...@googlegroups.com>.


> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com

> <mailto:hobousers%2Bunsu...@googlegroups.com>.

Reply all
Reply to author
Forward
0 new messages