Forum: Ruby on Rails error after removing # from routes.tb file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bd6c349d67819896d17515caf8276876?d=identicon&s=25 Badal Rooprai (Guest)
on 2014-01-30 10:56
(Received via mailing list)
i am new to ROR. currently studying getting started with rails
http://guides.rubyonrails.org/getting_started.html
i am getting "execjs: runtime error"after removing # from routes.tb
file.
root line  initially was like # root 'welcome#index'and it was working
fine
as expected on localhost:3000 but after removing # it gave that error .i
searched a lot online and got some suggestions like
root "welcome#index"

root :to => "home#index"

i tried all the suggested but i am not able to remove that
error and couldn't see my page .
what is the correct way to do it on ror 4.0.2
46a0becb1faafdd991788635ffad0550?d=identicon&s=25 Marco Antonio Almeida (Guest)
on 2014-01-30 11:02
(Received via mailing list)
Hi Badal,

Have you tried installing the gem 'therubyracer'?

Put the line:

gem 'therubyracer'

in your Gemfile and execute bundle install on your console. Restart the
server and try again.

Best regards,


*Marco Antonio Almeida*+45 31 65 28 84
Twitter: @marcoafilho <http://www.twitter.com/marcoafilho> | LinkedIn:
marco-antonio-almeida-filho<http://www.linkedin.com/pub/marco-antonio-almeida-...
This topic is locked and can not be replied to.