#1 ✓resolved
john (at john-conti)

DRYML guide <l> tag example may be misleading

Reported by john (at john-conti) | March 12th, 2009 @ 02:38 PM

From the DRYML portion of the cookbook:


And here’s a tag for making a link to the current context. We’ll assume the object will be recognised by Rails’ polymorphic routing. Let’s call it <l> (for link).

<def tag="l"><a href="#{url_for this}" param="default"/></def>

Note that by defining that <a> tag, normal HTML <a> tags won’t work anymore. We’ll see how to fix that in a later section.


I suspect the original tag defined was an <a> and then was changed to <l> without changing the text.

When I get git savvy I will start fixing this stuff since I am using the cookbook heavily right now. Since I am not up on git right now, I will spare you the hassle of having me fix it myself :-)

Cheers, John

PS: Wonderful work. Thank you.

Comments and changes to this ticket

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 ยป

See http://cookbook.hobocentral.net

Shared Ticket Bins

People watching this ticket

Tags

Pages