I am trying to install devise to my rails app, but all I am getting is this error message
rails g devise:install
/Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `require': incompatible library version - /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle (fatal)
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web_console.rb:1:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web_console.rb:1:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web-console.rb:1:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web-console.rb:1:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3#global/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /Users/luketimothy/Work/Arbitrage/config/application.rb:7:in `<top (required)>'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:82:in `require'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:82:in `preload'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:143:in `serve'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:131:in `block in run'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:125:in `loop'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application.rb:125:in `run'
from /Users/luketimothy/.rvm/gems/ruby-2.2.3/gems/spring-1.6.0/lib/spring/application/boot.rb:18:in `<top (required)>'
from /Users/luketimothy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/luketimothy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
I have tried searching and I get a lot of similar errors but for different operations. Nothing particularly helpful for this problem in particular. Is there anybody more skilled with Ruby who can help me? I am usually more of a Python guy...
EDIT
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.5)
actionview (= 4.2.5)
activesupport (= 4.2.5)
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.5)
activesupport (= 4.2.5)
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.5)
activesupport (= 4.2.5)
globalid (>= 0.3.0)
activemodel (4.2.5)
activesupport (= 4.2.5)
builder (~> 3.1)
activerecord (4.2.5)
activemodel (= 4.2.5)
activesupport (= 4.2.5)
arel (~> 6.0)
activesupport (4.2.5)
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)
autoprefixer-rails (6.3.1)
execjs
json
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
byebug (8.2.1)
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.10.0)
concurrent-ruby (1.0.0)
debug_inspector (0.0.2)
devise (3.5.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.3.2)
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)
kgio (2.10.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.3)
multi_json (1.11.2)
nokogiri (1.6.7.1)
mini_portile2 (~> 2.0.0.rc2)
orm_adapter (0.5.0)
pg (0.18.4)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5)
actionmailer (= 4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
activemodel (= 4.2.5)
activerecord (= 4.2.5)
activesupport (= 4.2.5)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5)
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.5)
actionpack (= 4.2.5)
activesupport (= 4.2.5)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.15.0)
rake (10.5.0)
rdoc (4.2.0)
responders (2.1.1)
railties (>= 4.2.0, < 5.1)
sass (3.4.20)
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)
spring (1.6.0)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.0.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.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)
unicorn (5.0.1)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
warden (1.2.4)
rack (>= 1.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
bootstrap-sass
byebug
coffee-rails (~> 4.1.0)
devise
jbuilder (~> 2.0)
jquery-rails
pg (~> 0.15)
rails (= 4.2.5)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
spring
turbolinks
uglifier (>= 1.3.0)
unicorn
web-console (~> 2.0)
BUNDLED WITH
1.11.2
EDIT 2
It occurred to me that it might be worth noting that I am using OSX. It also might be important to note that this is the DigitalOcean default Rails app that is loaded with their Nginx + Rails Image. I copied the project into a git repo on the server and then cloned that to my local machine.
Give this a try.
Run the command: gem pristine --all
And make sure to restart spring with spring stop && spring start
Do a clean install on your ruby and gems
rvm remove 2.2.3
rvm install 2.2.3
rvm use 2.2.3
gem install bundler
bundle install
The problem was unrelated to devise. I found a similar question here which said to uninstall the gem which has the incompatible library issue, and then re-run bundle install. So I did, and it worked!
in Gemfile try move the line gem 'devise' to below
Have you tried upgrading devise gem's version bundle update devise?
Start the project from scratch, because an Ubuntu Rails installation won't work under OSX. See e.g. http://railsapps.github.io/installrubyonrails-mac.html
try this => gem update --system
then => bundle install
then => rails generate devise:install
Related
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
I installed carrierwave gem and fog gem to use Amazon s3. However, after following all the steps, I tried to run rails s -p $PORT -b $IP because I am using cloud9. The server does not start! FYI, I am using postgresql as my database.
Here's part of the error:
=> Booting WEBrick
=> Rails 4.2.5 application starting in development on http://0.0.0.0:8080
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- fog (LoadError)
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/carrierwave-1.0.0/lib/carrierwave/uploader/configuration.rb:121:in `eager_load_fog'
from /usr/local/rvm/gems/ruby-2.3.0/gems/carrierwave-1.0.0/lib/carrierwave/uploader/configuration.rb:136:in `fog_credentials='
from /home/ubuntu/workspace/config/initializers/carrierwave.rb:2:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/carrierwave-1.0.0/lib/carrierwave/uploader/configuration.rb:158:in `configure'
from /usr/local/rvm/gems/ruby-2.3.0/gems/carrierwave-1.0.0/lib/carrierwave.rb:14:in `configure'
here my image_uploader:
class ImageUploader < CarrierWave::Uploader::Base
storage :fog
# storage :fog
include CarrierWave :MimeTypes
process :set_content_type
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end
my carrierwave.rb:
CarrierWave.configure do |config|
config.fog_credentials = {
provider: 'AWS', # required
aws_access_key_id: ENV["S3_ACCESS_KEY"], # required
aws_secret_access_key: ENV["S3_SECRET_KEY"] # required
}
config.fog_directory = ENV["S3_BUCKET"] # required
end
Edit
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.5)
actionview (= 4.2.5)
activesupport (= 4.2.5)
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.5)
activesupport (= 4.2.5)
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.5)
activesupport (= 4.2.5)
globalid (>= 0.3.0)
activemodel (4.2.5)
activesupport (= 4.2.5)
builder (~> 3.1)
activerecord (4.2.5)
activemodel (= 4.2.5)
activesupport (= 4.2.5)
arel (~> 6.0)
activesupport (4.2.5)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
acts_as_votable (0.10.0)
arel (6.0.4)
autoprefixer-rails (6.6.1)
execjs
bcrypt (3.1.11)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.7)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.3)
byebug (9.0.6)
carrierwave (1.0.0)
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
climate_control (0.1.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.4)
css_convertor (1.0.3)
debug_inspector (0.0.2)
devise (4.2.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.1)
responders
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.7.0)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
globalid (0.3.7)
activesupport (>= 4.1.0)
haml (4.0.7)
tilt
i18n (0.7.0)
jbuilder (2.6.1)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.2.2)
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.6)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.2)
mini_portile2 (2.1.0)
minitest (5.10.1)
multi_json (1.12.1)
nested_form (0.3.2)
nokogiri (1.7.0.1)
mini_portile2 (~> 2.1.0)
orm_adapter (0.5.0)
paperclip (5.1.0)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (~> 0.3.0)
pg (0.18.4)
rack (1.6.5)
rack-pjax (1.0.0)
nokogiri (~> 1.5)
rack (>= 1.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5)
actionmailer (= 4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
activemodel (= 4.2.5)
activerecord (= 4.2.5)
activesupport (= 4.2.5)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails-i18n (4.0.9)
i18n (~> 0.7)
railties (~> 4.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_admin (1.1.1)
builder (~> 3.1)
coffee-rails (~> 4.0)
font-awesome-rails (>= 3.0, < 5)
haml (~> 4.0)
jquery-rails (>= 3.0, < 5)
jquery-ui-rails (~> 5.0)
kaminari (~> 0.14)
nested_form (~> 0.3)
rack-pjax (>= 0.7)
rails (>= 4.0, < 6)
remotipart (~> 1.3)
sass-rails (>= 4.0, < 6)
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.5)
actionpack (= 4.2.5)
activesupport (= 4.2.5)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
rdoc (4.3.0)
remotipart (1.3.1)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
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)
sdoc (0.4.2)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simple_form (3.4.0)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
spring (2.0.0)
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)
thor (0.19.4)
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.4)
execjs (>= 0.3.0, < 3)
warden (1.2.6)
rack (>= 1.0)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
PLATFORMS
ruby
DEPENDENCIES
acts_as_votable (~> 0.10.0)
autoprefixer-rails
bootstrap-sass (~> 3.3, >= 3.3.7)
byebug
carrierwave (~> 1.0)
coffee-rails (~> 4.1.0)
css_convertor (~> 1.0, >= 1.0.3)
devise (~> 4.2)
haml (~> 4.0, >= 4.0.7)
jbuilder (~> 2.0)
jquery-rails
paperclip (~> 5.1)
pg (~> 0.18.2)
rails (= 4.2.5)
rails-i18n (~> 4.0, >= 4.0.8)
rails_12factor
rails_admin (~> 1.0)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simple_form (~> 3.3, >= 3.3.1)
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
RUBY VERSION
ruby 2.3.0p0
BUNDLED WITH
1.12.5
that's my Initializers/Carrierwave.rb:
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS', # required
:aws_access_key_id => ENV["S3_ACCESS_KEY"], # required
:aws_secret_access_key => ENV["S3_SECRET_KEY"] # required
}
config.fog_directory = ENV["S3_BUCKET"] # required
end
Let me know if more info is needed, and thanks in advance!
It looks like fog is not listed in your Gemfile.lock.
Ensure to add this at the root level of your Gemfile:
gem 'fog', '~> 1.38'
Then run:
bundle install
and commit the changes.
Restart the app, it should work.
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
Rails 4.1.7
Ruby 2.1.5
Basically, I just need to add a Ckeditor Form for Active Admin.
I've got a problem integrating the Rich Gem for Active Admin.
Update:
Rich Gem supports only Formtastic and 1 and 2, it doesn't support 3, although a patch has been done to support Formtastic 3+.
I am currently using formtastic (~> 3.1).
Rendered /Users/adam/.rvm/gems/ruby-2.1.5#blog/bundler/gems/activeadmin-ed1fbca8c64a/app/views/active_admin/resource/new.html.arb (752.4ms)
Completed 500 Internal Server Error in 766ms
LoadError (Unable to autoload constant RichInput, expected /Users/adam/.rvm/gems/ruby-2.1.5#blog/gems/rich-1.4.6/app/inputs/rich_input.rb to define it):
app/admin/recipe.rb:42:in `block (5 levels) in <top (required)>'
app/admin/recipe.rb:39:in `block (4 levels) in <top (required)>'
app/admin/recipe.rb:38:in `block (3 levels) in <top (required)>'
app/admin/recipe.rb:24:in `block (2 levels) in <top (required)>'
After running, this line
➜ blog git:(master) ✗ rails generate rich:install
create config/initializers/rich.rb
route mount Rich::Engine => '/rich', :as => 'rich'
create app/assets/stylesheets/rich/editor.css
create app/assets/javascripts/rich.js
rake rich:install:migrations
git://github.com/activeadmin/activeadmin.git (at master) is not yet checked out. Run `bundle install` first.
Currently, I'm using the activeadmin gem from github. If I switch it to master I encounter other issues (related to AA).
Gemfile
gem 'rails', '4.1.7'
...
gem 'rich'
gem "paperclip", "~> 4.2"
gem 'activeadmin', github: 'activeadmin'
Gemfile Lock
GIT
remote: git://github.com/activeadmin/activeadmin.git
revision: ed1fbca8c64af827616c58f274d7be256ca513b6
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
jquery-rails
jquery-ui-rails (~> 5.0)
kaminari (~> 0.15)
rails (>= 3.2, < 5.0)
ransack (~> 1.3)
sass-rails
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.7)
actionpack (= 4.1.7)
actionview (= 4.1.7)
mail (~> 2.5, >= 2.5.4)
actionpack (4.1.7)
actionview (= 4.1.7)
activesupport (= 4.1.7)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.7)
activesupport (= 4.1.7)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.7)
activesupport (= 4.1.7)
builder (~> 3.1)
activerecord (4.1.7)
activemodel (= 4.1.7)
activesupport (= 4.1.7)
arel (~> 5.0.0)
activesupport (4.1.7)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arbre (1.0.3)
activesupport (>= 3.0.0)
arel (5.0.1.20140414130214)
bcrypt (3.1.10)
bourbon (3.2.4)
sass (~> 3.2)
thor
builder (3.2.2)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.7)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.9.1)
commonjs (0.2.7)
devise (3.4.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.3.0)
formtastic (3.1.3)
actionpack (>= 3.2.13)
formtastic_i18n (0.1.1)
has_scope (0.6.0)
actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
hike (1.2.3)
i18n (0.7.0)
inherited_resources (1.6.0)
actionpack (>= 3.2, < 5)
has_scope (~> 0.6.0.rc)
railties (>= 3.2, < 5)
responders
jbuilder (2.2.8)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.3)
railties (>= 3.2.16)
json (1.8.2)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.6.0)
actionpack (>= 3.1)
less (~> 2.6.0)
libv8 (3.16.14.7)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
minitest (5.5.1)
multi_json (1.10.1)
mysql2 (0.3.18)
orm_adapter (0.5.0)
paperclip (4.2.1)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
polyamorous (1.1.0)
activerecord (>= 3.0)
rack (1.5.2)
rack-raw-upload (1.1.1)
multi_json
rack-test (0.6.3)
rack (>= 1.0)
rails (4.1.7)
actionmailer (= 4.1.7)
actionpack (= 4.1.7)
actionview (= 4.1.7)
activemodel (= 4.1.7)
activerecord (= 4.1.7)
activesupport (= 4.1.7)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.7)
sprockets-rails (~> 2.0)
railties (4.1.7)
actionpack (= 4.1.7)
activesupport (= 4.1.7)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
ransack (1.6.3)
actionpack (>= 3.0)
activerecord (>= 3.0)
activesupport (>= 3.0)
i18n
polyamorous (~> 1.1)
rdoc (4.2.0)
json (~> 1.4)
ref (1.0.5)
responders (1.1.2)
railties (>= 3.2, < 4.2)
rich (1.4.6)
jquery-rails
kaminari
mime-types
paperclip
rack-raw-upload
rails (>= 3.2.0)
sass-rails
sass (3.2.19)
sass-rails (4.0.5)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.2)
sprockets (~> 2.8, < 3.0)
sprockets-rails (~> 2.0)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (1.3.2)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.4)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
turbolinks (2.5.3)
coffee-rails
twitter-bootstrap-rails (3.2.0)
actionpack (~> 4.1)
execjs (~> 2.2)
rails (~> 4.1)
railties (~> 4.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
activeadmin!
coffee-rails (~> 4.0.0)
devise
jbuilder (~> 2.0)
jquery-rails
less-rails
mysql2
paperclip (~> 4.2)
rails (= 4.1.7)
rich
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
spring
therubyracer
turbolinks
twitter-bootstrap-rails
uglifier (>= 1.3.0)
Well , this is always the last option to be tried when it comes to version dependencies but solves the problem .
Download the rich gem and manually place it in the vendor folder . After that , you will have to mention this in the routes file
gem 'rich', path: 'vendor/rich(actual folder name)'
Then , you can do the following
rails generate rich:install
Should be good to go , do let me know if you get stuck somewhere .
i try to set up a bootstrap-sass ruby on rails project in Intellij IDEA to auto-compile .scss files using File Watchers plug-in. file watcher is configured by default.
i import bootstrap libraries
#import "bootstrap-sprockets";
#import "bootstrap";
in my app/assets/stylesheets/application.css.scss
and when file watcher executes, i get following output in newly created .css file :
/*
Error: File to import not found or unreadable: bootstrap-sprockets.
Load paths:
on line 1 of application.css.scss
1: #import "bootstrap-sprockets";
2: #import "bootstrap";
Backtrace:
application.css.scss:1
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/import_node.rb:66:in `rescue in import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/import_node.rb:45:in `import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/import_node.rb:28:in `imported_file'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/import_node.rb:37:in `css_import?'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:311:in `visit_import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:36:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/stack.rb:79:in `block in with_base'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/stack.rb:115:in `with_frame'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/stack.rb:79:in `with_base'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:158:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:52:in `map'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:167:in `block in visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:166:in `visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:186:in `visit_root'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/base.rb:36:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:157:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/visitors/perform.rb:8:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/root_node.rb:36:in `css_tree'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/tree/root_node.rb:29:in `render_with_sourcemap'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/engine.rb:368:in `_render_with_sourcemap'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/engine.rb:285:in `render_with_sourcemap'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/plugin/compiler.rb:490:in `update_stylesheet'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/plugin/compiler.rb:209:in `each'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/plugin.rb:82:in `update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/exec/sass_scss.rb:361:in `watch_or_update'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/exec/sass_scss.rb:51:in `process_result'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/exec/base.rb:52:in `parse'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/lib/sass/exec/base.rb:19:in `parse!'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.13/bin/scss:13:in `<top (required)>'
/usr/bin/scss:23:in `load'
/usr/bin/scss:23:in `<main>'
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Error: File to import not found or unreadable: bootstrap-sprockets.\A Load paths:\A \A on line 1 of application.css.scss\A \A 1: #import \"bootstrap-sprockets\";\A 2: #import \"bootstrap\";"; }
it seems like file watcher can't identify the path to ruby bootstrap library.
any ideas on how to fix it?
my gemfile:
source 'http://rubygems.org'
gem 'bootstrap-sass'
gem 'rails', '4.2.1'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gemfile.lock
GEM
remote: http://rubygems.org/
specs:
actionmailer (4.2.1)
actionpack (= 4.2.1)
actionview (= 4.2.1)
activejob (= 4.2.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.1)
actionview (= 4.2.1)
activesupport (= 4.2.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
actionview (4.2.1)
activesupport (= 4.2.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
activejob (4.2.1)
activesupport (= 4.2.1)
globalid (>= 0.3.0)
activemodel (4.2.1)
activesupport (= 4.2.1)
builder (~> 3.1)
activerecord (4.2.1)
activemodel (= 4.2.1)
activesupport (= 4.2.1)
arel (~> 6.0)
activesupport (4.2.1)
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.0)
autoprefixer-rails (5.1.8)
execjs
json
bootstrap-sass (3.3.4.1)
autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.2.19)
builder (3.2.2)
erubis (2.7.0)
execjs (2.5.0)
globalid (0.3.3)
activesupport (>= 4.1.0)
hike (1.2.3)
i18n (0.7.0)
json (1.8.2)
loofah (2.0.1)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
mini_portile (0.6.2)
minitest (5.5.1)
multi_json (1.11.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
rack (1.6.0)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.1)
actionmailer (= 4.2.1)
actionpack (= 4.2.1)
actionview (= 4.2.1)
activejob (= 4.2.1)
activemodel (= 4.2.1)
activerecord (= 4.2.1)
activesupport (= 4.2.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.1)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.6)
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.1)
actionpack (= 4.2.1)
activesupport (= 4.2.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
sass (3.4.13)
sass-rails (5.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.4)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
PLATFORMS
ruby
DEPENDENCIES
bootstrap-sass
rails (= 4.2.1)
sass-rails (~> 5.0)
sqlite3
Generally, in rails projects *.scss files shouldn't be compiled to .css manually using an external tool (e.g. "File Watchers"). Usually, Ruby on Rails manages transpiling under the hood when serving requests.
Anyway, it's possible to configure "File Watchers":
Program: /path/to/scss
Arguments: --require bootstrap-sass $FileName$ $FileNameWithoutExtension$.css
Working directory: $FileDir$
Output path to refresh: $FileNameWithoutExtension$.css:$FileNameWithoutExtension$.css.map
Tested in the following environment:
$ scss --version
Sass 3.4.13 (Selective Steve)
ruby 2.1.5p273
bootstrap-sass 3.3.4.1