Ruby 1.9.3 syntax for block as argument -


Then in Ruby 1.9.2 - p290 I can do this

  content_for: something , Ending   

which is quite good but it is a syntax error in Ruby 1.9.3-P12 and instead I need to do this

  End content_for (:)   

Where do I find the document about this syntax restriction? Is there any other way that can be written in 1.9.3-P12?

Simply delete a comma:

 for  content_: something ended Happens    

Comments