Marnen Laibow-Koser wrote:
Cris Shupp wrote:
How come I cannot write the code as follows (Aptana will not compile
t.string :name, :type, :email, :camera
Because you've got your syntax wrong. The braces aren't correct In this
passed to functions.
On second thought, the braces are probably OK (although it's more common
to use do...end for multiline blocks and braces for single-line ones).
The bigger problem is the parentheses. If you're going to use them,
then the closing parenthesis goes *before* the beginning of the block.