The main problem was in your Gemfile here
gem 'therubyracer', platforms: :ruby
gem 'mini_racer', platforms: :ruby
You had two racer type gems, you only need one.
You should just use gem 'mini_racer'
and get rid of therubyracer
. Do that and run bundle install
. You will also need to clean up merge conflict stuff left in your routes.rb
file. Do that before bundle install
and you should be good.
You probably also don’t need to lock your gem versions until you have a more developed and stable stack. You might as well upgrade everything early on since some of the versions you have our out of date. To upgrade your gems just remove all the version stuff after each gem line i.e.
gem 'coffee-rails', '~> 4.2'
can just be
gem 'coffee-rails'
After removing them all, then run
bundle update
Here is a patchfile which will do these things in case you have a problem. You can save this locally and then just run git apply fix_gem_dependancies.patch
if you like.
UPDATE LAST ONE: This is the last thing I’m doing on this. Get rid of gems you don’t need, just use this Gemfile
source 'https://rubygems.org'
gem 'rails', '~> 5.1.3'
gem 'sqlite3'
gem 'puma', '~> 3.7'
gem 'sass-rails'
gem 'uglifier'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder'
gem 'sdoc'
gem 'autoprefixer-rails'
gem 'execjs'
gem 'materialize-sass'
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
gem 'web-console', '>= 3.3.0'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
The patch I sent you should have fixed the routes but you obviously don’t know what you’re doing with git. So here is your routes.rb file
Rails.application.routes.draw do
root 'pages#home'
get 'about' => 'pages#about'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
6
solved How do I fix Rails RuntimeError Current ExectJ doesn’t support ES5?