[geddyjs.org] Bug in the tutorial #515

krizalys opened this Issue Dec 14, 2013 · 1 comment


None yet
2 participants


There is a syntax error in one of the code snippets published on the geddyjs.org website.

The error is in the section http://geddyjs.org/tutorial#The%20ToDo-side%20of%20the%20association, second snippet, which currently reads:

<h3>Status: <%= toDo.status %></h3>

<% steps.forEach(function (step) { %>
  <%- linkTo(step.title, {controller: 'steps', action: 'show', id: step.id}l); %>
<% }); %>

Note the l (lowercase "L") at the end of the parameters passed to the linkTo() function. This character causes an error 500 while trying to visit http://localhost:4000/to_dos/:id

This line should be rewritten to something correct like:
<%- linkTo(step.title, {controller: 'steps', action: 'show', id: step.id}); %>


@mde mde added a commit that referenced this issue Dec 14, 2013

@mde mde Fixed Issue #515 typo in tutorial 97dd6fe

mde commented Dec 14, 2013

Thanks for catching this. :) Fixed in 97dd6fe on the release branch.

For future reference, the tutorial is in the GitHub repo:


Feel free to make improvements or corrections there. The Web site pulls from the release branch, so if you have fixes that should go up immediately, just give us a pull request for that branch.

Thanks again!

mde closed this Dec 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment