Skip to content

Instantly share code, notes, and snippets.

Created May 10, 2010 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/396208 to your computer and use it in GitHub Desktop.
Save anonymous/396208 to your computer and use it in GitHub Desktop.
# Example in scaffold-generated index view
# Fails
<%= link_to 'Show', entity %>
# Error:
# syntax error, unexpected tIVAR, expecting keyword_do or '{' or '('
# ..._to 'Show', entity @output_buffer.safe_concat('</td>
# Works
<%= link_to 'Show', entity, :action => "show" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment