Rob Dodson 9/21/2011

Syntax Error: Unexpected tIDENTIFIER in Rails 3

Read Original

This article analyzes a 'Syntax Error: Unexpected tIDENTIFIER' in Rails 3, caused by a missing comma in a `link_to` helper call. It explains the error for developers from other language backgrounds and delves into Ruby's syntax, specifically the optional omission of parentheses for method arguments and braces for hashes, a common Rails idiom that can confuse newcomers.

Syntax Error: Unexpected tIDENTIFIER in Rails 3

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week