Ruby on Rails, Michael Hartl Ch. 2 -
i'm new in rails, i'm next tutorials michael hartl. i'm stuck on chapter 2 problem begins section 2.2
i generate users
scaffold instructed in text, , utilize rake db:migrate
apply migrations database. attempting view users after starting server gives me error:
execjs::runtimeerror in users#index showing c:/sites/rails_projects/demo_app/app/views/layouts/application.html.erb line #6 raised: (in c:/railsinstaller3.0/ruby2.0.0/lib/ruby/gems/2.0.0/gems/turbolinks-1.1.1/lib/assets/javascripts/turbolinks.js.coffee) extracted source (around line #6): 3 4 5 6 7 8 9 <head> <title>demoapp</title> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> </head> <body> rails.root: c:/sites/rails_projects/demo_app application trace | framework trace | total trace app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___308270545_35424396'
it same thing if effort view of other pages michael's tutorial instructs. i'm not sure begin trying debug this. help appreciated.
git repository here: https://github.com/tritonis/demo_app
i've stumbled problem before. installing therubyracer gem fixed me.
in gemfile, add: gem 'therubyracer', platforms: :ruby
then, in terminal, execute: bundle install
, restart server. problem should fixed.
hope helped!
ruby-on-rails ruby ruby-on-rails-3 railstutorial.org
No comments:
Post a Comment