All aboard the hash rocket, or maybe not?please help


please help i dunno what is wrong with my code:

movies ={
  :primer => "Awesome",
  :memento => "Not as good the 2nd time",
here is the problem:
(ruby):1: syntax error, unexpected tASSOC, expecting '}'
  :primer => "Awesome",
(ruby):1: syntax error, unexpected ',', expecting '}'
(ruby):2: syntax error, unexpected ',', expecting '}'


Use Hash literal syntax - delete, becase it doesn't take block arguments. accepts a value which will be returned when trying to access non-existent key - default is nil.

    movies ="nothing here")
    =>"nothing here"


Thanks for your help


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.