#341 open
Betelgeuse

extend does not work in page templates

Reported by Betelgeuse | December 3rd, 2008 @ 03:54 PM | in Beyond Hobo 1.0

When browsing to front page:


 NoMethodError in Front#index

Showing front/index.dryml where line #28 raised:

undefined method `alias_method_chain_on_include' for #<Class:0xb6b007b4>

Extracted source (around line #28):

25: </page>
26: <extend tag="page">
27: 	<old-page merge />
28: </extend>

RAILS_ROOT: /home/betelgeuse/hobo/hobohead
Application Trace | Framework Trace | Full Trace

app/views/front/index.dryml:28:in `build'

Using:
betelgeuse@pena ~/hobo/hobohead/vendor/plugins/hobo $ git --no-pager log --max-count=1
commit bc846b30530286d42dc143a73be1b20d380bb574
Author: Tom Locke <tom@tomlocke.com>
Date:   Tue Dec 2 17:00:20 2008 +0000

    DRYML -- fix to merge-attrs="a, b, c"

Comments and changes to this ticket

  • Tom Locke

    Tom Locke December 5th, 2008 @ 09:48 AM

    • State changed from “new” to “open”
    • Title changed from “extend does not work outside application.dryml” to “extend does not work in page templates”

    Thanks for reporting.

    In the case of <page> I would say there's no need to use extend - just call the tag passing the parameters you need.

    This does need fixing though, as e.g. extending a card inside a page tempalte is a reasonable thing to want to do.

  • Tom Locke

    Tom Locke January 6th, 2009 @ 04:58 PM

    • Milestone set to Hobo 1.0 - Final
  • Tom Locke

    Tom Locke March 12th, 2009 @ 11:31 AM

    • Milestone changed from Hobo 1.0 - Final to Beyond Hobo 1.0
    • Tag changed from dryml, extend to defect, dryml, extend

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages