1

我一直在用 ruby​​ on rails 尝试 eclim。尝试设置哈希时,会显示语法错误。

exp:

  @update = { 
    title:       "Lorem Ipsum",
    description: "Wibbles are fun!",
    image_url:   "lorem.jpg",
    price:       19.95
  }

但是当我将语法更改为旧样式时,它运行正常。

exp:
  @update = { 
    :title =>       "Lorem Ipsum",
    :description => "Wibbles are fun!",
    :image_url =>   "lorem.jpg",
    :price =>       19.95
  }   

那么如何将 eclim 设置为 ruby​​ 1.9.2 ?谢谢

4

0 回答 0