1

http://i.imgur.com/tF5gZ48.png?1

I have created a project named Treebook then after I added a code "rails generate scaffold status name:string context:text" which created my class as

class CreateStatuses < ActiveRecord::Migration def change create_table :statuses do |t| t.string :name t.text :context t.timestamps end end end

then after opening my localhost i got an error which is shown in above link .

4

1 回答 1

1

我在 Win7 系统上也遇到了错误,并安装了修复它的 node.js(我尝试使用 ruby​​racer 进行修复,但它对我不起作用)。也许这会解决它。

对于您的 ubuntu 系统(正如我根据您的图像推测的那样),您可以通过在控制台中输入此命令来安装 nodejs

sudo apt-get install nodejs
于 2013-10-08T16:09:07.980 回答