1

https://i.sstatic.net/hcvxb.png

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
  • Is rubyracer uncommented in your gemfile? Commented Oct 8, 2013 at 15:58
  • @Santosh what do that mean? Commented Oct 8, 2013 at 16:00
  • 1
    There is a gem which is commented by default in the gemfile called therubyracer. Uncomment this and rebundle Commented Oct 8, 2013 at 16:01
  • can you please tell me how to uncomment that and rebundle? i am just the beginner Commented Oct 8, 2013 at 16:04

1 Answer 1

1

I had the error too on a Win7 system and installed node.js which fixed it (I tried the fix with rubyracer but it didn't worked for me). Maybe this will fix it.

For your ubuntu system (as I presume by your image) you can install nodejs by entering this command into a console

sudo apt-get install nodejs
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.