Joshua Choi wrote:
Oops! My apologies to everyone: I seem to have double-posted this. The
Internet hung when I sent it, so I thought that it wasn't sent.

Changing it to button('test') { ... } works, but is it a Ruby problem?
I tried it in regular Ruby and it seemed to work fine...

Sincerely,
Joshua Choi


No, it's a ruby syntax thing.

This is faaaaake code but demonstrates the problem.

  while true do
     [].inject 'a', {|t,s| 'b' }
  end

This raises a bunch of syntax errors while

  while true do
     [].inject('a'){|t,s| 'b' }
  end

works.
--
Jeff

Reply via email to