I generated a page using a controller. But when I go to the localhost:3000/pages/home. I got this error: ExecJS::RuntimeError in Pages#home How can I fix this? I found a solution here http://stackoverflow.com/a/14118913/2829893 but I''ve no idea where to find ExecJS''s runtimes.rb file. I''m using complete package from here: http://railsinstaller.org/en Any help will be appreciated. thank you. Here is the full error code: =======================================ExecJS::RuntimeError in Pages#home Showing C:/Users/Anishka/Desktop/test/myfirstapp/app/views/layouts/application.html.erb where line #6 raised: (in C:/Users/Anishka/Desktop/test/myfirstapp/app/assets/javascripts/pages.js.coffee) Extracted source (around line #6): 3: <head> 4: <title>Myfirstapp</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> Rails.root: C:/Users/Anishka/Desktop/test/myfirstapp Application Trace | Framework Trace | Full Trace app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__601430158_32305500'' Request Parameters: None Show session dump Show env dump Response Headers: None ======================================= -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a903d4cd39b761b704516a688d1dfbef%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi,
add in Gemfile
gem ''execjs''
gem ''therubyracer'' run bundle install and check
Regards
Mehdi
On 9/30/13, Pretty G. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> I generated a page using a controller. But when I go to the
> localhost:3000/pages/home. I got this error: ExecJS::RuntimeError in
> Pages#home
>
> How can I fix this? I found a solution here
> http://stackoverflow.com/a/14118913/2829893
>
> but I''ve no idea where to find ExecJS''s runtimes.rb file.
>
> I''m using complete package from here: http://railsinstaller.org/en
>
> Any help will be appreciated. thank you.
>
>
> Here is the full error code:
>
> =======================================> ExecJS::RuntimeError in
Pages#home
>
> Showing
>
C:/Users/Anishka/Desktop/test/myfirstapp/app/views/layouts/application.html.erb
> where line #6 raised:
>
>
> (in
>
C:/Users/Anishka/Desktop/test/myfirstapp/app/assets/javascripts/pages.js.coffee)
> Extracted source (around line #6):
>
> 3: <head>
> 4: <title>Myfirstapp</title>
> 5: <%= stylesheet_link_tag "application", :media =>
"all" %>
> 6: <%= javascript_include_tag "application" %>
> 7: <%= csrf_meta_tags %>
> 8: </head>
> 9: <body>
> Rails.root: C:/Users/Anishka/Desktop/test/myfirstapp
>
> Application Trace | Framework Trace | Full Trace
> app/views/layouts/application.html.erb:6:in
> `_app_views_layouts_application_html_erb__601430158_32305500''
> Request
>
> Parameters:
>
> None
> Show session dump
>
> Show env dump
>
> Response
>
> Headers:
>
> None
> =======================================>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/rubyonrails-talk/a903d4cd39b761b704516a688d1dfbef%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CABRbsV%3DjFtMQEnx0sZ%3D_4PgGq18%3DKQYpswr0i8NfLeNfU2gAvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Anishka Vaghani
2013-Oct-04 02:55 UTC
Re: Ruby on Rails ExecJS::RuntimeError in Pages#home
Khizer Mehdi wrote in post #1122896:> Hi, > add in Gemfile > gem ''execjs'' > gem ''therubyracer'' run bundle install and check > > Regards > MehdiThanks, problem solved :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/292728eb984a61d473e6ec7fb5a5bb50%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.