Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maiha/63870 to your computer and use it in GitHub Desktop.
Save maiha/63870 to your computer and use it in GitHub Desktop.
def foo
@_erb_buf.concat(
form_for @user, :action => "/foo" do
end
).to_s
end
__END__
% ruby1.8 -c foo.rb
Syntax OK
% ruby1.9 -c foo.rb
foo.rb:3: syntax error, unexpected keyword_do_block, expecting ')'
def foo
@_erb_buf.concat(
form_for(@user, :action => "/foo") do
end
).to_s
end
__END__
% ruby1.8 -c foo.rb
Syntax OK
% ruby1.9 -c foo.rb
Syntax OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment