cannot extend in edit.dryml: undefined method `alias_method_chain_on_include'
Reported by Bryan Larsen | June 23rd, 2009 @ 09:09 PM | in Hobo 1.1
I put this:
<extend tag="form" for="Foo">
<old-form merge>
<field-list:>
<bars-view:>
<check-many />
</bars-view:>
</field-list:>
</old-form>
</extend>
in an edit dryml and I got undefined method
alias_method_chain_on_include
when I put the same extend in application.dryml, everything worked fine.
The error comes from template.rb:342. When I break in there, it's being executed on a Class the time it breaks, and on a Module when it doesn't.
Comments and changes to this ticket
-
Owen August 17th, 2009 @ 05:25 PM
- Assigned user set to Bryan Larsen
I ran into this as well working on a tutorial for our Hobo book. Bryan, is this an easy fix?
-
Tom Locke October 24th, 2009 @ 05:59 PM
- Milestone set to Beyond Hobo 1.0
This should be fixed, but I'd like to see a use-case for it. e.g. extending a form tag in an edit.dryml is not really good style. Instead the
<form:>
parameter should be used. I'll put as post-1.0 for now but happy to change that if I can understand the issue. -
Tom Locke October 24th, 2009 @ 06:08 PM
- State changed from new to investigating
-
Bryan Larsen February 19th, 2010 @ 06:39 PM
- Milestone changed from Beyond Hobo 1.0 to Hobo 1.1
- State changed from investigating to open
This bug causes problems when using DRYML on its own.
-
Daniel Cox September 17th, 2011 @ 12:08 AM
- Milestone order changed from 0 to 0
You guys probably know this already, but I thought I'd mention it just in case -
Doing Tutorial 11 on Rapid Rails 3 with Hobo (Beta 6), Rails 3.0.10 and Hobo 1.3.0.RC2, the following code from page 154 placed in front/index.dryml produced the error "undefined method `alias_method_chain_on_include'":
<def tag="messagex"> <br/> <br/> <ul> <li param="msg1">Message 1</li> <li param="msg2">Message 2</li> <li param="msg3">Message 3</li> </ul> </def> <extend tag="messagex"> <old-messagex merge> <msg2: param>Message 2 Extended</msg2:> </old-messagex> </extend>
-
Daniel Cox September 17th, 2011 @ 12:10 AM
Just realized I should have kept reading. Please forgive the interruption.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป