Updated local installation of rails from 5.0.1 to 5.1.1. last night. I'm now failing to get any generation to work i.e. rails g scaffold Product or rails generate controller Welcome. The terminal doesn't respond at all. I have to ctrl-c to break out of it. I then get the following:
^C/Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/run.rb:117:in `gets': Interrupt
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/run.rb:117:in `verify_server_version'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/run.rb:62:in `run'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/run.rb:42:in `warm_run'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/run.rb:35:in `call'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:24:in `call'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /Users/Simon/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /Users/Simon/Sites/depot/bin/spring:15:in `require'
from /Users/Simon/Sites/depot/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Should I be suspecting the spring gem here?
I have run bundle update.
And also:
$ bundle exec spring binstub --all
* bin/rake: spring already present
* bin/rails: spring already present
My gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.1)
actionpack (= 5.1.1)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.1)
actionpack (= 5.1.1)
actionview (= 5.1.1)
activejob (= 5.1.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.1)
actionview (= 5.1.1)
activesupport (= 5.1.1)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.1)
activesupport (= 5.1.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.1)
activesupport (= 5.1.1)
globalid (>= 0.3.6)
activemodel (5.1.1)
activesupport (= 5.1.1)
activerecord (5.1.1)
activemodel (= 5.1.1)
activesupport (= 5.1.1)
arel (~> 8.0)
activesupport (5.1.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
arel (8.0.0)
bindex (0.5.0)
builder (3.2.3)
byebug (9.0.6)
capybara (2.14.0)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.7.0)
ffi (~> 1.0, >= 1.0.11)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
erubi (1.6.0)
execjs (2.7.0)
ffi (1.9.18)
globalid (0.4.0)
activesupport (>= 4.2.0)
i18n (0.8.1)
jbuilder (2.6.4)
activesupport (>= 3.0.0)
multi_json (>= 1.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.5)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.2)
multi_json (1.12.1)
nio4r (2.0.0)
nokogiri (1.7.2)
mini_portile2 (~> 2.1.0)
public_suffix (2.0.5)
puma (3.8.2)
rack (2.0.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.1.1)
actioncable (= 5.1.1)
actionmailer (= 5.1.1)
actionpack (= 5.1.1)
actionview (= 5.1.1)
activejob (= 5.1.1)
activemodel (= 5.1.1)
activerecord (= 5.1.1)
activesupport (= 5.1.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.1.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.1.1)
actionpack (= 5.1.1)
activesupport (= 5.1.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.4.24)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.4.0)
childprocess (~> 0.5)
rubyzip (~> 1.0)
websocket (~> 1.0)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.19.4)
thread_safe (0.3.6)
tilt (2.0.7)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.3)
tzinfo (1.2.3)
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket (1.2.4)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
puma (~> 3.7)
rails (~> 5.1.1)
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
BUNDLED WITH
1.14.6
Try updating the bin from the rake task available.
rake app:update:bin
OR …if on a later version of rails…
rake rails:update:bin
Maybe You need reinstall node and yarn again.
For Mac
$brew install node
$brew install yarn
$rails new myproject --skip-turbolinks --webpack=vue --database=postgresql
Related
I have an error with my RoR project when I try to start it using "Run" (shift+f10)
But when I start the server using rails s in console, it works.
========================================
Your Yarn packages are out of date!
Please run `yarn install` to update.
========================================
To disable this check, please add `config.webpacker.check_yarn_integrity = false`
to your Rails development config file (config/environments/development.rb).
yarn check v1.6.0
warning Integrity check: System parameters don't match
error Integrity check failed
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.
# Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.0)
actionpack (= 5.2.0)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.0)
actionpack (= 5.2.0)
actionview (= 5.2.0)
activejob (= 5.2.0)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.0)
actionview (= 5.2.0)
activesupport (= 5.2.0)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.0)
activesupport (= 5.2.0)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.0)
activesupport (= 5.2.0)
globalid (>= 0.3.6)
activemodel (5.2.0)
activesupport (= 5.2.0)
activerecord (5.2.0)
activemodel (= 5.2.0)
activesupport (= 5.2.0)
arel (>= 9.0)
activestorage (5.2.0)
actionpack (= 5.2.0)
activerecord (= 5.2.0)
marcel (~> 0.3.1)
activesupport (5.2.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
annotate (2.7.3)
activerecord (>= 3.2, < 6.0)
rake (>= 10.4, < 13.0)
arel (9.0.0)
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
bcrypt (3.1.11)
bindex (0.5.0)
bootsnap (1.3.0)
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
climate_control (0.2.0)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
connection_pool (2.2.1)
crass (1.0.4)
devise (4.4.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 6.0)
responders
warden (~> 1.2.3)
econfig (2.0.0)
erubi (1.7.1)
execjs (2.7.0)
exifr (1.3.3)
ffi (1.9.23)
font-awesome-rails (4.7.0.4)
railties (>= 3.2, < 6.0)
fspath (3.1.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
haml (5.0.4)
temple (>= 0.8.0)
tilt
i18n (1.0.1)
concurrent-ruby (~> 1.0)
image_optim (0.26.1)
exifr (~> 1.2, >= 1.2.2)
fspath (~> 3.0)
image_size (~> 1.5)
in_threads (~> 1.3)
progress (~> 3.0, >= 3.0.1)
image_optim_bin (0.0.7)
image_size (1.5.0)
in_threads (1.5.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
kaminari (1.1.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.1.1)
kaminari-activerecord (= 1.1.1)
kaminari-core (= 1.1.1)
kaminari-actionview (1.1.1)
actionview
kaminari-core (= 1.1.1)
kaminari-activerecord (1.1.1)
activerecord
kaminari-core (= 1.1.1)
kaminari-core (1.1.1)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.6.0)
launchy (~> 2.2)
letter_opener_web (1.3.4)
actionmailer (>= 3.2)
letter_opener (~> 1.0)
railties (>= 3.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
marcel (0.3.2)
mimemagic (~> 0.3.2)
method_source (0.9.0)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.2)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
mysql2 (0.5.1)
nested_form (0.3.2)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
orm_adapter (0.5.0)
paperclip (6.0.0)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
mime-types
mimemagic (~> 0.3.0)
terrapin (~> 0.6.0)
paperclip-optimizer (2.0.0)
image_optim (~> 0.19)
paperclip (>= 3.4)
possibly (1.0.1)
progress (3.4.0)
public_suffix (3.0.2)
puma (3.11.4)
rack (2.0.5)
rack-pjax (1.0.0)
nokogiri (~> 1.5)
rack (>= 1.1)
rack-proxy (0.6.4)
rack
rack-test (1.0.0)
rack (>= 1.0, < 3)
rails (5.2.0)
actioncable (= 5.2.0)
actionmailer (= 5.2.0)
actionpack (= 5.2.0)
actionview (= 5.2.0)
activejob (= 5.2.0)
activemodel (= 5.2.0)
activerecord (= 5.2.0)
activestorage (= 5.2.0)
activesupport (= 5.2.0)
bundler (>= 1.3.0)
railties (= 5.2.0)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
rails-settings-cached (0.6.6)
rails (>= 4.2.0)
rails_admin (1.3.0)
builder (~> 3.1)
coffee-rails (~> 4.0)
font-awesome-rails (>= 3.0, < 5)
haml (>= 4.0, < 6)
jquery-rails (>= 3.0, < 5)
jquery-ui-rails (~> 5.0)
kaminari (>= 0.14, < 2.0)
nested_form (~> 0.3)
rack-pjax (>= 0.7)
rails (>= 4.0, < 6)
remotipart (~> 1.3)
sass-rails (>= 4.0, < 6)
railties (5.2.0)
actionpack (= 5.2.0)
activesupport (= 5.2.0)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
react-rails (2.4.4)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
railties (>= 3.2)
tilt
remotipart (1.4.2)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
ruby_dep (1.5.0)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
slim (3.0.9)
temple (>= 0.7.6, < 0.9)
tilt (>= 1.3.3, < 2.1)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
temple (0.8.0)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.1)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.10)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
web-console (3.6.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webpacker (3.4.3)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
PLATFORMS
ruby
DEPENDENCIES
annotate
bootsnap (>= 1.1.0)
byebug
coffee-rails (~> 4.2)
devise
econfig
image_optim_bin
jbuilder (~> 2.5)
letter_opener_web
listen (>= 3.0.5, < 3.2)
mysql2 (>= 0.4.4, < 0.6.0)
paperclip
paperclip-optimizer
possibly
puma (~> 3.11)
rails (~> 5.2.0)
rails-settings-cached
rails_admin (~> 1.3)
react-rails
sass-rails (~> 5.0)
slim
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
webpacker
RUBY VERSION
ruby 2.3.4p301
BUNDLED WITH
1.16.1
System:
Ubuntu 17.04
yarn version 1.6.0
Rubymine: try with 2017.3.3 and 2018.1
Gemfile.lock
I had a very similar issue. However, when I ran sudo yarn install I was getting warnings about wrong version of node.
In the end I tracked it down to there existing an old version of node in /usr/local/bin. Removing that fixed the problem for me. sudo yarn install then reported that everything was up-to-date.
try this as a solution
spring stop
I am using Ruby 2.3.3 and Rails 5.0.1. In my application the memory is increasing for each and every request and not reducing when the request is complete.
Installed Gems: (GemFile.lock)
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.1)
actionpack (= 5.0.1)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.1)
actionpack (= 5.0.1)
actionview (= 5.0.1)
activejob (= 5.0.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.1)
actionview (= 5.0.1)
activesupport (= 5.0.1)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.1)
activesupport (= 5.0.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (5.0.1)
activesupport (= 5.0.1)
globalid (>= 0.3.6)
activemodel (5.0.1)
activesupport (= 5.0.1)
activerecord (5.0.1)
activemodel (= 5.0.1)
activesupport (= 5.0.1)
arel (~> 7.0)
activesupport (5.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
airbrussh (1.1.1)
sshkit (>= 1.6.1, != 1.7.0)
arel (7.1.4)
builder (3.2.2)
byebug (9.0.6)
capistrano (3.7.1)
airbrussh (>= 1.0.0)
capistrano-harrow
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-bundler (1.2.0)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-harrow (0.5.3)
capistrano-rails (1.2.0)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
capistrano-ssh-doctor (1.0.0)
capistrano (>= 3.1)
capybara (2.11.0)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
codeclimate-test-reporter (1.0.6)
simplecov
coderay (1.1.1)
concurrent-ruby (1.0.3)
database_cleaner (1.5.3)
diff-lcs (1.2.5)
docile (1.1.5)
dotenv (2.1.1)
erubis (2.7.0)
execjs (2.7.0)
factory_girl (4.8.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.8.0)
factory_girl (~> 4.8.0)
railties (>= 3.0.0)
faker (1.6.6)
i18n (~> 0.5)
fast_stack (0.2.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
honeybadger (2.7.2)
htmlbeautifier (1.2.1)
httparty (0.14.0)
multi_xml (>= 0.5.2)
i18n (0.7.0)
jasmine (2.5.1)
jasmine-core (>= 2.5.1, < 3.0.0)
phantomjs
rack (>= 1.2.1)
rake
jasmine-core (2.5.2)
jasmine-jquery-rails (2.0.3)
json (2.0.2)
launchy (2.4.3)
addressable (~> 2.3)
libv8 (3.16.14.17)
libv8 (3.16.14.17-x86_64-darwin-16)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
mail_gate (1.1.2)
mail
memory_profiler (0.9.8)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1)
multi_xml (0.6.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (3.2.0)
newrelic_rpm (3.17.2.327)
nio4r (1.2.1)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
pg (0.19.0)
phantomjs (2.1.1.0)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-byebug (3.4.2)
byebug (~> 9.0)
pry (~> 0.10)
public_suffix (2.0.4)
puma (3.6.2)
rack (2.0.1)
rack-mini-profiler (0.10.5)
rack (>= 1.2.0)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.1)
actioncable (= 5.0.1)
actionmailer (= 5.0.1)
actionpack (= 5.0.1)
actionview (= 5.0.1)
activejob (= 5.0.1)
activemodel (= 5.0.1)
activerecord (= 5.0.1)
activesupport (= 5.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.1)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.1)
actionpack (~> 5.x)
actionview (~> 5.x)
activesupport (~> 5.x)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.1)
actionpack (= 5.0.1)
activesupport (= 5.0.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
ref (2.0.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-rails (3.5.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
sass (3.4.23)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
simple_form (3.3.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
simplecov (0.12.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
simplecov-rcov (0.2.3)
simplecov (>= 0.4.1)
slop (3.6.0)
spring (2.0.1)
activesupport (>= 4.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sshkit (1.11.5)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
stackprof (0.2.10)
supercache (0.7)
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
ref
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.4)
execjs (>= 0.3.0, < 3)
websocket-driver (0.6.4)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
will_paginate (3.1.5)
will_paginate-bootstrap (1.0.1)
will_paginate (>= 3.0.3)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
x86_64-darwin-16
DEPENDENCIES
airbrussh
byebug
capistrano
capistrano-bundler
capistrano-rails
capistrano-rvm
capistrano-ssh-doctor
capybara
codeclimate-test-reporter (~> 1.0.0)
database_cleaner
dotenv
factory_girl_rails
faker
fast_stack
honeybadger
htmlbeautifier
httparty
jasmine
jasmine-jquery-rails
launchy
mail_gate
memory_profiler
newrelic_rpm
pg
pry-byebug
puma
rack-mini-profiler
rails (= 5.0.1)
rails-controller-testing
rspec-rails
sass-rails (~> 5.0.0.beta1)
shoulda-matchers
simple_form
simplecov
simplecov-rcov
spring
stackprof
supercache
therubyracer
uglifier
will_paginate
will_paginate-bootstrap
RUBY VERSION
ruby 2.3.3p222
BUNDLED WITH
1.15.1
I used MemoryProfiler to detect memory leaks. I have pasted the result of MemoryProfiler.start and MemoryProfiler.stop. Which one is causing leaks is not clear to me. Which gem or code causing memory leak issue?
Total allocated: 242425441 bytes (2105822 objects)
Total retained: 2970695 bytes (16840 objects)
allocated memory by gem
-----------------------------------
68444044 activerecord-5.0.1
48631659 activesupport-5.0.1
33867169 ruby-2.3.3/lib
26983147 actionview-5.0.1
20242402 i18n-0.7.0
15872628 20170712102216/app
10357404 simple_form-3.3.1
3187323 puma-3.6.2
3010603 newrelic_rpm-3.17.2.327
2581225 activemodel-5.0.1
2174325 rack-mini-profiler-0.10.5
2077399 rack-2.0.1
1785709 erubis-2.7.0
1634373 arel-7.1.4
1154020 actionpack-5.0.1
209364 other
122145 concurrent-ruby-1.0.3
57606 did_you_mean-1.0.0
16299 railties-5.0.1
12261 sprockets-rails-3.2.0
2808 honeybadger-2.7.2
1160 sprockets-3.7.1
368 tzinfo-1.2.2
retained memory by gem
-----------------------------------
1102502 puma-3.6.2
728109 simple_form-3.3.1
522334 i18n-0.7.0
226441 actionview-5.0.1
93458 activerecord-5.0.1
74910 rack-2.0.1
70051 activesupport-5.0.1
60945 concurrent-ruby-1.0.3
31530 actionpack-5.0.1
22331 activemodel-5.0.1
12389 newrelic_rpm-3.17.2.327
11770 rack-mini-profiler-0.10.5
9717 ruby-2.3.3/lib
1879 20170712102216/app
1593 arel-7.1.4
504 railties-5.0.1
232 honeybadger-2.7.2
allocated memory by location
-----------------------------------
16675773 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/string/output_safety.rb:176
11287702 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/tags/base.rb:51
6412328 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/result.rb:123
6169344 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:83
6122176 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:118
5305392 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_part.rb:51
5249720 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/timeout.rb:81
4253488 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/hash/except.rb:11
4161024 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:360
3698688 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:96
3520608 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:88
3152622 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:180
2880280 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/hash_with_indifferent_access.rb:283
2867056 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:145
2866128 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n/exceptions.rb:46
2818960 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:268
2676232 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute_set/builder.rb:33
2662442 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/string/output_safety.rb:258
2649672 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/persistence.rb:69
2593155 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/tag_helper.rb:192
2389918 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/log_subscriber.rb:51
1926400 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:420
1890554 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:907
1803634 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:181
1732528 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/string/output_safety.rb:198
1599053 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:330
1569960 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/relation/predicate_builder.rb:72
1508831 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/multibyte/unicode.rb:248
1493725 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/tags/base.rb:109
1462544 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/core.rb:135
1431338 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/tag_helper.rb:152
1426240 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute.rb:5
1402178 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/logger.rb:654
1373677 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:310
1360800 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/object/json.rb:161
1353705 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:385
1288272 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/relation.rb:24
1280920 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/relation.rb:36
1259712 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/association_scope.rb:67
1244682 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/query_parser.rb:81
1200960 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency.rb:140
1156385 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:21
1135632 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/form_helper.rb:1867
1086637 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.5/lib/patches/db/pg.rb:7
1076640 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:32
1067904 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute_methods.rb:347
1055840 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/json/encoding.rb:89
1050872 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:70
1038184 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/hash/keys.rb:14
1035416 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/relation/predicate_builder.rb:97
retained memory by location
-----------------------------------
1050872 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:70
516280 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:330
435844 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:180
253231 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:181
112705 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:310
31056 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.3/lib/concurrent/collection/map/non_concurrent_map_backend.rb:16
28271 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:183
23673 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/client.rb:258
22080 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.3/lib/concurrent/collection/map/mri_map_backend.rb:14
19832 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/attribute_methods.rb:383
18732 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/client.rb:285
17776 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template/resolver.rb:165
17640 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/query_parser.rb:64
16944 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/hash_with_indifferent_access.rb:217
14480 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/hash/indifferent_access.rb:9
14160 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/http/parameter_filter.rb:55
13784 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/query_parser.rb:157
11800 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:121
11360 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.5/lib/patches/db/pg.rb:7
11328 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template/resolver.rb:215
11073 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293
10975 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:340
9440 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:141
9132 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/simple_form-3.3.1/lib/simple_form/inputs/base.rb:184
8914 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:347
8406 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/query_parser.rb:167
8110 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/helpers/form_helper.rb:1889
7776 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/client.rb:35
6968 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:238
6857 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.3/lib/concurrent/collection/map/non_concurrent_map_backend.rb:24
5887 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:332
5828 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template/resolver.rb:348
5774 /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/uri/common.rb:384
5680 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute.rb:5
5664 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template/resolver.rb:269
5360 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute.rb:80
5360 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:676
5360 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:683
5106 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute_methods/read.rb:33
4720 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/core_ext/hash/except.rb:11
4496 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:350
4496 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:380
4376 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/schema_cache.rb:62
3622 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/attribute_methods.rb:30
3511 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/multipart.rb:36
3280 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/result.rb:123
3024 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:382
2808 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:163
2551 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/path/pattern.rb:71
2360 <APPLICATION_HOME_PATH>/shared/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/template.rb:139
Give rack-mini-profiler a try, you have various ways to see how your application manages resources, in your case you are probably interested in memory profiling.
I am having trouble deploying my rails application with puma and capistrano on my server. Also I am using
https://mattbrictson.com/build-and-deploy-a-rails-vps-part-2
as a reference guide
But when I try to run bundle exec cap production deploy
I will get the following error message:
The deploy has failed with an error: Exception while executing as deployer#SERVER: bundle exit status: 16
bundle stdout: Your bundle only supports platforms ["x86-mingw32"] but your local platforms are["ruby", "x86_64-linux"], and there's no compatible match between those two lists.
Which is strange since when I run: bundle platform
I get:
Your platform is: x86_64-linux-gnu
Your app has gems that work on these platforms:
* ruby
Your Gemfile does not specify a Ruby version requirement.
And the Gemfile.lock contains the following:
GIT
remote: git://github.com/capistrano/rbenv.git
revision: 65db3295752d079bf8cf874dab36b16ab45454b7
specs:
capistrano-rbenv (2.1.1)
capistrano (~> 3.1)
sshkit (~> 1.3)
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.3)
actionpack (= 5.0.3)
nio4r (>= 1.2, < 3.0)
websocket-driver (~> 0.6.1)
actionmailer (5.0.3)
actionpack (= 5.0.3)
actionview (= 5.0.3)
activejob (= 5.0.3)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.3)
actionview (= 5.0.3)
activesupport (= 5.0.3)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.3)
activesupport (= 5.0.3)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activeadmin (1.0.0)
arbre (>= 1.1.1)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.7)
jquery-rails
jquery-ui-rails
kaminari (>= 0.15, < 2.0)
railties (>= 4.2, < 5.2)
ransack (~> 1.3)
sass-rails
sprockets (< 4.1)
activejob (5.0.3)
activesupport (= 5.0.3)
globalid (>= 0.3.6)
activemodel (5.0.3)
activesupport (= 5.0.3)
activerecord (5.0.3)
activemodel (= 5.0.3)
activesupport (= 5.0.3)
arel (~> 7.0)
activesupport (5.0.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
airbrussh (1.2.0)
sshkit (>= 1.6.1, != 1.7.0)
arbre (1.1.1)
activesupport (>= 3.0.0)
arel (7.1.4)
bcrypt (3.1.11)
bindex (0.5.0)
bourbon (4.3.4)
sass (~> 3.4)
thor (~> 0.19)
builder (3.2.3)
byebug (9.0.6)
capistrano (3.8.1)
airbrussh (>= 1.0.0)
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-bundler (1.2.0)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-rails (1.2.3)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano3-puma (3.1.0)
capistrano (~> 3.7)
capistrano-bundler
puma (~> 3.4)
coffee-rails (4.2.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.2.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
devise (4.3.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.2)
responders
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.7.0)
formtastic (3.1.5)
actionpack (>= 3.2.13)
formtastic_i18n (0.6.0)
globalid (0.4.0)
activesupport (>= 4.2.0)
haml (5.0.1)
temple (>= 0.8.0)
tilt
has_scope (0.7.1)
actionpack (>= 4.1, < 5.2)
activesupport (>= 4.1, < 5.2)
i18n (0.8.1)
inherited_resources (1.7.2)
actionpack (>= 3.2, < 5.2.x)
has_scope (~> 0.6)
railties (>= 3.2, < 5.2.x)
responders
jbuilder (2.6.4)
activesupport (>= 3.0.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
kaminari (1.0.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.0.1)
kaminari-activerecord (= 1.0.1)
kaminari-core (= 1.0.1)
kaminari-actionview (1.0.1)
actionview
kaminari-core (= 1.0.1)
kaminari-activerecord (1.0.1)
activerecord
kaminari-core (= 1.0.1)
kaminari-core (1.0.1)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.5)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.2)
multi_json (1.12.1)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.1.0)
nio4r (2.0.0)
nokogiri (1.7.2)
mini_portile2 (~> 2.1.0)
orm_adapter (0.5.0)
polyamorous (1.3.1)
activerecord (>= 3.0)
puma (3.8.2)
rack (2.0.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.3)
actioncable (= 5.0.3)
actionmailer (= 5.0.3)
actionpack (= 5.0.3)
actionview (= 5.0.3)
activejob (= 5.0.3)
activemodel (= 5.0.3)
activerecord (= 5.0.3)
activesupport (= 5.0.3)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.3)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.3)
actionpack (= 5.0.3)
activesupport (= 5.0.3)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
ransack (1.8.2)
actionpack (>= 3.0)
activerecord (>= 3.0)
activesupport (>= 3.0)
i18n
polyamorous (~> 1.3)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
sass (3.4.24)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
sshkit (1.13.1)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
temple (0.8.0)
thor (0.19.4)
thread_safe (0.3.6)
tilt (2.0.7)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.3)
tzinfo (1.2.3)
thread_safe (~> 0.1)
tzinfo-data (1.2017.2)
tzinfo (>= 1.0.0)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
PLATFORMS
ruby
DEPENDENCIES
activeadmin
byebug
capistrano (~> 3.0)
capistrano-bundler
capistrano-rails
capistrano-rbenv!
capistrano3-puma
coffee-rails (~> 4.2)
devise
haml
jbuilder (~> 2.5)
jquery-rails
puma (~> 3.0)
rails (~> 5.0.0)
sass-rails (~> 5.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console
BUNDLED WITH
1.14.6
What am I doing wrong? Did I forget something?
Can you try to add ruby version in your Gemfile?
ruby '2.3.3' // or whatever your ruby version is
I'm new to Ruby on Rails, and I have decided to use LocomotiveCMS as well for the needs of my app.
I'm having some trouble getting my head around the concepts and I'm running into the problem of gem dependencies!
I just tried to create a Rails controller as I'm trying to get to grips with using Locomotive/Wagon, but ran into the following:
chloe#chloe-VirtualBox:~/fyp/locomotiveapp$ rails generate controller Book
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'locomotivecms'. (Bundler::GemRequireError)
Gem Load Error is: uninitialized constant ActiveModel::Serializers::Xml
Backtrace for gem load error is:
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid/composable.rb:35:in `<module:Composable>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid/composable.rb:23:in `<module:Mongoid>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid/composable.rb:18:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid/document.rb:17:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid/document.rb:17:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid.rb:22:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/mongoid-5.1.5/lib/mongoid.rb:22:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotive/dependencies.rb:3:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotive/dependencies.rb:3:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotive/engine.rb:1:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotive/engine.rb:1:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotivecms.rb:1:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/locomotivecms-3.1.1/lib/locomotivecms.rb:1:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/home/chloe/fyp/locomotiveapp/config/application.rb:17:in `<top (required)>'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:156:in `require'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:156:in `require_application_and_environment!'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:143:in `generate_or_destroy'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:60:in `generate'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
/home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
from /home/chloe/fyp/locomotiveapp/config/application.rb:17:in `<top (required)>'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:156:in `require'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:156:in `require_application_and_environment!'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:143:in `generate_or_destroy'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:60:in `generate'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/chloe/.rvm/gems/ruby-2.3.0#rails4/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I'm using a VirtualBox instance with Xubuntu on it, I'm using Rails 5.0.0.1, Ruby 5.0.0.1, and LocomotiveCMS 3.1.1
I had some issues with dependencies as locomotivecms 3.1.1 needed to use Rails 4.2.6, but I changed this in the Gemfile.lock file (wrt another page that I looked at), but now I am really stumped; any help/advice would be much appreciated!
Here is my Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
actioncable (5.0.0.1)
actionpack (= 5.0.0.1)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionmailer-with-request (0.4.0)
rails (>= 3)
actionpack (5.0.0.1)
actionview (= 5.0.0.1)
activesupport (= 5.0.0.1)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.0.1)
activesupport (= 5.0.0.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (5.0.0.1)
activesupport (= 5.0.0.1)
globalid (>= 0.3.6)
activemodel (5.0.0.1)
activesupport (= 5.0.0.1)
activerecord (5.0.0.1)
activemodel (= 5.0.0.1)
activesupport (= 5.0.0.1)
arel (~> 7.0)
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.3.8)
arel (7.1.4)
attr_extras (4.4.0)
autoprefixer-rails (6.3.3.1)
execjs
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
bazaar (0.0.2)
bcrypt (3.1.11)
bootstrap-kaminari-views (0.0.5)
kaminari (>= 0.13)
rails (>= 3.1)
bootstrap-sass (3.3.7)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
bson (4.1.1)
builder (3.2.2)
byebug (9.0.6)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
carrierwave-mongoid (0.8.1)
carrierwave (>= 0.8.0, < 0.11.0)
mongoid (>= 3.0, < 6.0)
mongoid-grid_fs (>= 1.3, < 3.0)
chronic (0.10.2)
chunky_png (1.3.7)
codemirror-rails (5.16.0)
railties (>= 3.0, < 6.0)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
coffee-rails (4.2.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.2.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorize (0.8.1)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
compass-import-once (~> 1.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
sass (>= 3.3.13, < 3.5)
compass-core (1.0.3)
multi_json (~> 1.0)
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
concurrent-ruby (1.0.2)
crass (1.0.2)
custom_fields (2.7.0.rc1)
activesupport (>= 4.2.5)
carrierwave-mongoid (~> 0.8.1)
monetize (~> 1.4.0)
mongoid (~> 5.1.0)
debug_inspector (0.0.2)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise (3.5.10)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5.2.x)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
devise-encryptable (0.2.0)
devise (>= 2.1.0)
dragonfly (1.0.12)
addressable (~> 2.3)
multi_json (~> 1.0)
rack (>= 1.3.0)
equalizer (0.0.11)
erubis (2.7.0)
execjs (2.7.0)
ffi (1.9.14)
flash_cookie_session (1.1.6)
rails (>= 3.0)
font-awesome-sass (4.5.0)
sass (>= 3.2)
globalid (0.3.7)
activesupport (>= 4.1.0)
grape (0.12.0)
activesupport
builder
hashie (>= 2.1.0)
multi_json (>= 1.3.2)
multi_xml (>= 0.5.2)
rack (>= 1.3.0)
rack-accept
rack-mount
virtus (>= 1.0.0)
grape-entity (0.4.5)
activesupport
multi_json (>= 1.3.2)
haml (4.0.7)
tilt
hashie (3.4.6)
highline (1.7.8)
httparty (0.13.7)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.2)
jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.1.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
json-schema (2.6.2)
addressable (~> 2.3.8)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kramdown (1.10.0)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
locomotivecms (3.1.1)
actionmailer-with-request (~> 0.4.0)
autoprefixer-rails (~> 6.3.3.1)
bazaar (~> 0.0.2)
bootstrap-kaminari-views (~> 0.0.5)
bootstrap-sass (~> 3.3.6)
carrierwave-mongoid (~> 0.8.1)
codemirror-rails (~> 5.16.0)
custom_fields (~> 2.7.0.rc1)
devise (~> 3.5.1)
devise-encryptable (~> 0.2.0)
dragonfly (~> 1.0.7)
flash_cookie_session (~> 1.1.1)
font-awesome-sass (~> 4.5.0)
grape (~> 0.12.0)
grape-entity (= 0.4.5)
highline (~> 1.7.1)
jquery-rails (~> 4.1.0)
jquery-ui-rails (~> 5.0.3)
json-schema (~> 2.6.1)
kaminari (~> 0.16.3)
locomotivecms_steam (~> 1.1.1)
mime-types (~> 2.6.2)
mimetype-fu (~> 0.1.2)
mongo_session_store-rails4 (~> 6.0.0)
mongoid (~> 5.1.3)
mongoid-tree (~> 2.0.1)
multi_json (~> 1.11.0)
net-ssh (~> 3.0.2)
nprogress-rails (~> 0.1.6.7)
pundit (~> 1.1.0)
rack-cache (~> 1.1)
rails (= 5.0.0.1)
rails-i18n (~> 4.0.6)
rake (~> 10.5.0)
responders (~> 2.1.0)
simple_form (~> 3.2.0)
simple_token_authentication (~> 1.12.0)
slim (~> 3.0.6)
locomotivecms-liquid (4.0.0)
locomotivecms-solid (4.0.1)
locomotivecms-liquid (~> 4.0.0)
locomotivecms_common (0.2.0)
activesupport (>= 4.2.6)
attr_extras (~> 4.4.0)
colorize
stringex (~> 2.6.0)
locomotivecms_steam (1.1.1)
RedCloth (~> 4.2.9)
autoprefixer-rails (~> 6.3.3.1)
chronic (~> 0.10.2)
coffee-script (~> 2.4.1)
compass (~> 1.0.3)
dragonfly (~> 1.0.12)
haml (~> 4.0.6)
httparty (~> 0.13.6)
kramdown (~> 1.10.0)
locomotivecms-solid (~> 4.0.1)
locomotivecms_common (~> 0.2.0)
mime-types (~> 2.6.1)
mimetype-fu (~> 0.1.2)
moneta (~> 0.8.0)
morphine (~> 0.1.1)
nokogiri (~> 1.6.7.2)
rack-cache (~> 1.6.1)
rack-rewrite (~> 1.5.1)
rack_csrf (~> 2.5.0)
sanitize (~> 4.0.1)
sass (~> 3.4.21)
sprockets (~> 3.5.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (2.6.2)
mimetype-fu (0.1.2)
mini_portile2 (2.0.0)
minitest (5.9.1)
moneta (0.8.0)
monetize (1.4.0)
money (~> 6.7)
money (6.7.1)
i18n (>= 0.6.4, <= 0.7.0)
sixarm_ruby_unaccent (>= 1.1.1, < 2)
mongo (2.3.1)
bson (~> 4.1)
mongo_session_store-rails4 (6.0.0)
actionpack (>= 3.1)
mongoid (5.1.5)
activemodel (>= 4.0)
mongo (~> 2.1)
origin (~> 2.2)
tzinfo (>= 0.3.37)
mongoid-grid_fs (2.3.0)
mime-types (>= 1.0, < 4.0)
mongoid (>= 3.0, < 7.0)
mongoid-tree (2.0.1)
mongoid (>= 4.0, < 6.0)
morphine (0.1.1)
multi_json (1.11.3)
multi_xml (0.5.5)
net-ssh (3.0.2)
nio4r (1.2.1)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
nokogumbo (1.4.10)
nokogiri
nprogress-rails (0.1.6.8)
origin (2.2.2)
orm_adapter (0.5.0)
puma (3.6.0)
pundit (1.1.0)
activesupport (>= 3.0.0)
rack (2.0.1)
rack-accept (0.4.5)
rack (>= 0.4)
rack-cache (1.6.1)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-rewrite (1.5.1)
rack-test (0.6.3)
rack (>= 1.0)
rack_csrf (2.5.0)
rack (>= 1.1.0)
rails (5.0.0.1)
actioncable (= 5.0.0.1)
actionmailer (= 5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
activemodel (= 5.0.0.1)
activerecord (= 5.0.0.1)
activesupport (= 5.0.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.0.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails-i18n (4.0.9)
i18n (~> 0.7)
railties (>= 4.0)
railties (5.0.0.1)
actionpack (= 5.0.0.1)
activesupport (= 5.0.0.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
responders (2.1.2)
railties (>= 4.2.0, < 5.1)
sanitize (4.0.1)
crass (~> 1.0.2)
nokogiri (>= 1.4.4)
nokogumbo (~> 1.4.1)
sass (3.4.22)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
simple_form (3.2.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
simple_token_authentication (1.12.0)
actionmailer (>= 3.2.6, < 5.1)
actionpack (>= 3.2.6, < 5.1)
devise (~> 3.2)
sixarm_ruby_unaccent (1.1.1)
slim (3.0.7)
temple (~> 0.7.6)
tilt (>= 1.3.3, < 2.1)
spring (2.0.0)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
stringex (2.6.1)
temple (0.7.7)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.3)
execjs (>= 0.3.0, < 3)
virtus (1.0.5)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)
warden (1.2.6)
rack (>= 1.0)
web-console (3.3.0)
activemodel (>= 4.2)
debug_inspector
railties (>= 4.2)
websocket-driver (0.6.4)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
PLATFORMS
ruby
DEPENDENCIES
bootstrap-sass (~> 3.3.6)
byebug
coffee-rails (~> 4.2.1)
jbuilder (~> 2.5)
jquery-rails
listen (~> 3.0.5)
locomotivecms (~> 3.1.1)
puma (~> 3.0)
rails (~> 5.0.0.1, >= 5.0.0.1)
sass-rails (~> 5.0)
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console
BUNDLED WITH
1.13.6
This is the error I get in my terminal when I am trying to spin up rails server or even when I input rails -v.
/Users/lukeduncan/.rbenv/versions/2.2.0/bin/rails:23:in `load': cannot load such file -- /Users/lukeduncan/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rails-4.2.4/bin/rails (LoadError)
from /Users/lukeduncan/.rbenv/versions/2.2.0/bin/rails:23:in `<main>'
I have looked into the issue and noticed it may be because I have two versions of ruby installed. But not entirely sure so don't want to remove one just in case. When I gem install rails, it says it updates to the latest 4.2.4 but still does not load once I try to run a rails app or even trying to run rails -v. Other apps that I have also spin up the same error so it is not app specific.
Here is my gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.4)
activesupport (= 4.2.4)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
arel (~> 6.0)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
byebug (6.0.2)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.6.0)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.3.1)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (4.0.5)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
jwt (1.5.1)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
oauth (0.4.7)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
pg (0.18.3)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.4)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rdoc (4.2.0)
sass (3.4.18)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
sorcery (0.9.1)
bcrypt (~> 3.1)
oauth (~> 0.4, >= 0.4.4)
oauth2 (>= 0.8.0)
spring (1.4.0)
sprockets (3.3.4)
rack (~> 1.0)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
web-console (2.2.1)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
PLATFORMS
ruby
DEPENDENCIES
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
pg
rails (= 4.2.4)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
sorcery (= 0.9.1)
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
BUNDLED WITH
1.10.6
Help would be much appreciated!
You haven't published your Gemfile and Gemfile.lock, so I can only make assumptions.
I assume that your Gemfile.lock contains a reference to rails 4.2.4, correct? If yes, make sure that you start rails from the directory where it resides; since Rails 3 it is Bundler-aware, so it executes rails command in the context of the current bundle.
Figured it out. I had two versions of rails installed. Uninstalled both of them and railties as well. Reinstalled rails 4.2.4 and everything is working now.