i am new to ruby on rails, when i enter rails server command i get a strange message which i don't know how to deal with.
Using tzinfo-data 1.2015.7
Using uglifier 2.7.2
Using web-console 2.2.1
Bundle complete! 12 Gemfile dependencies, 53 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
C:\Users\dell notebook>cd Mybook
C:\Users\dell notebook\MyBook>rails server
E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mingw32/lib/nok
ogiri.rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:29:in `rescue in <top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:25:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
0.2/lib/rails-html-sanitizer.rb:2:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
i think i have all the gems installed
*** LOCAL GEMS ***
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)
arel (6.0.3)
bigdecimal (1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.6)
byebug (6.0.2)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jquery-rails (4.0.5)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1, 5.4.3)
multi_json (1.11.2)
nokogiri (1.6.6.2 x86-mingw32)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.4)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.4)
rake (10.4.2)
rdoc (4.2.0)
sass (3.4.19)
sass-rails (5.0.4)
sdoc (0.4.1)
sprockets (3.4.0)
sprockets-rails (2.3.3)
sqlite3 (1.3.11 x86-mingw32)
test-unit (3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
tzinfo-data (1.2015.7)
uglifier (2.7.2)
web-console (2.2.1)
My rails and ruby versions are:
C:\Users\dell notebook\MyBook>rails -v
Rails 4.2.4
C:\Users\dell notebook\MyBook>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-mingw32]
If someone with more experience could just point me in the right direction, I would greatly appreciate it. I have been working on this install for days!
Thanks
It looks like you have nokogiri installed but for the wrong version of ruby. It's installed for ruby 2.2.0 but you're using ruby 2.2.3.
add these two files:
.ruby-gemset
rails4.2.4
.ruby-version
ruby-2.2.3
Then run:
bundle install
Related
i am using ruby 2.2.3, and rails 4.2.5. I am not being able to run rails generate devise:install on my project. Bundler is throwing an error. the error are like following
rails g devise:install
/home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:72:in `each'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:72:in `block in require'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:61:in `each'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler/runtime.rb:61:in `require'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.1/lib/bundler.rb:99:in `require'
from /home/suyesh/Desktop/petrohub/config/application.rb:7:in `<top (required)>'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:82:in `require'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:82:in `preload'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:143:in `serve'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:131:in `block in run'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:125:in `loop'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:125:in `run'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.6.0/lib/spring/application/boot.rb:18:in `<top (required)>'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/suyesh/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
and here are my gem list
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)
arel (6.0.3)
autoprefixer-rails (6.1.2)
bcrypt (3.1.10)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
bootstrap-sass (3.3.6)
builder (3.2.2)
bundler (1.11.1, 1.11.0)
byebug (8.2.1)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.0)
debug_inspector (0.0.2)
devise (3.5.3)
diff-lcs (1.2.5)
domain_name (0.5.25)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
http-cookie (1.0.2)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jquery-rails (4.0.5)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mechanize (2.7.3)
mime-types (3.0, 2.99)
mime-types-data (3.2015.1120)
mini_portile2 (2.0.0)
minitest (5.8.3, 5.4.3)
multi_json (1.11.2)
net-http-digest_auth (1.4)
net-http-persistent (2.9.4)
nokogiri (1.6.7)
ntlm-http (0.1.1)
orm_adapter (0.5.0)
power_assert (0.2.6, 0.2.2)
psych (2.0.16, 2.0.8)
rack (1.6.4)
rack-protection (1.5.3)
rack-test (0.6.3)
rails (4.2.5)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.5)
rake (10.4.2)
rdoc (4.2.0)
responders (2.1.0)
rspec-core (3.4.1)
rspec-expectations (3.4.0)
rspec-mocks (3.4.0)
rspec-rails (3.4.0)
rspec-support (3.4.1)
rubygems-update (2.5.1)
sass (3.4.20)
sass-rails (5.0.4)
sdoc (0.4.1)
sinatra (1.4.6)
spring (1.6.0)
sprockets (3.5.2)
sprockets-rails (2.3.3)
sqlite3 (1.3.11)
test-unit (3.1.5, 3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
uglifier (2.7.2)
unf (0.1.4)
unf_ext (0.0.7.1)
warden (1.2.4)
web-console (3.0.0, 2.2.1)
webrobots (0.1.1)
I keep getting the error when i do rails generate devise:install. I tried uninstalling devise and reinstalling it. I even tried uninstalling uglifier and reinstalling. I am not being able to understand what is causing the issue? is it the bundler?
It has been resolved. The problem was nodejs. I was using nvm to manage my nodejs, i switched to system wide sudo apt-get install nodejs and switched nvm to use the system version and devise started working.
I had the same problem, for me worked this:
bin/spring stop
bin/spring binstub --remove --all
bundle isntall && update
When I received that error I found that these three steps corrected the issue, albeit I am not sure how or why:
Uninstall the gem.
Install the gem, without a specific version to install the latest version.
Update my gem file to include this new version.
I am learning Ruby on Rails through a text, and it has me working with a specific version, but the entire thing did not work as it was supposed to, and I found that the above worked for me. I had to do it for four gems before things finally worked alright.
The main reason of your error may be that you forgot including your gem in your Gemfile. So ,
First of all check whether , the uglifier gem is present in your Gemfile.
After that , run bundle install again.
And then install devise .
I hope this helps.
I'm not sure if this is the problem, but a dependency of Devise 3.5.3 is: railties < 5, >= 3.2.6
It looks like you need to update this gem
I had the same problem.. Fixed by installing nodejs and it's working now :)
I'm following a tutorial for Rails that specifically asks for version 4.2.0 so I installed Rails with sudo gem install rails -v 4.2.0 and it worked fine. When I try to create a new application with rails _4.2.0 new test_app I get an error message that says /Library/Ruby/Site/2.0.0/rubygems/dependency.rb.315: in 'to_specs': Could not find 'railties' (=4.2.0) - did find: [railties-4.2.1] (Gem::LoadError) and continues on for a little bit more.
I've tried installing that specific version of railties with sudo gem install railties -v 4.2.0 but I still get the same error. Is it checking for/installing the gem in two different places?
EDIT: Running gem list yields the following output, clearly showing railties (4.2.0):
*** LOCAL GEMS ***
actionmailer (4.2.0)
actionpack (4.2.1, 4.2.0)
actionview (4.2.1, 4.2.0)
activejob (4.2.1, 4.2.0)
activemodel (4.2.0)
activerecord (4.2.0)
activesupport (4.2.1, 4.2.0)
arel (6.0.0)
bigdecimal (1.2.6)
builder (3.2.2)
bundler (1.9.9)
erubis (2.7.0)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
json (1.8.2, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.6.1, 5.4.3)
nokogiri (1.6.6.2)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.1)
rack-test (0.6.3)
rails (4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.0)
rake (10.4.2)
rdoc (4.2.0)
sprockets (3.1.0)
sprockets-rails (2.3.1)
test-unit (3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
You should not use sudo for installing gems. Use rbenv.
I am using Windows 7.
I downloaded and ran the rails installer "railsinstaller-2.2.5.exe"
Then I followed the https://gist.github.com/luislavena/f064211759ee0f806c88 for 'SSL upgrades on rubygems.org and RubyInstaller versions'
D:\Projects\AptanaWorkspace\cms_synth>rails --version
Rails 4.1.1
D:\Projects\AptanaWorkspace\cms_synth>ruby --version
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
Then tried and received
D:\Projects\AptanaWorkspace\cms_synth>rails s
=> Booting WEBrick
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0
.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in
`kill': Invalid argument (Errno::EINVAL)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack- 1.5.2/lib/rack/server.rb:353:in `pidfile_process_status'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:340:in `check_pid!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:246:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/server.rb:69:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
My Gem List:
D:\Projects\AptanaWorkspace\cms_synth>gem list --local
*** LOCAL GEMS ***
actionmailer (4.1.1, 3.2.21)
actionpack (4.1.1, 3.2.21)
actionview (4.1.1)
activemodel (4.1.8, 4.1.1, 3.2.21)
activerecord (4.1.8, 4.1.1, 3.2.21)
activerecord-sqlserver-adapter (4.1.0)
activeresource (3.2.21)
activesupport (4.1.8, 4.1.1, 3.2.21)
arel (5.0.1.20140414130214, 3.0.3)
bcrypt-ruby (3.1.2 x86-mingw32)
bigdecimal (1.1.0)
bootstrap-sass (2.3.2.0)
bootstrap-will_paginate (0.0.9)
builder (3.2.2, 3.0.4)
bundler (1.7.7)
capybara (2.1.0)
childprocess (0.5.5)
coffee-rails (4.0.1, 3.2.2)
coffee-script (2.3.0)
coffee-script-source (1.8.0)
cucumber (1.3.17)
cucumber-rails (1.4.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.2.2)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faker (1.1.2)
ffi (1.9.6 x86-mingw32)
gherkin (2.12.2 x86-mingw32)
hike (1.2.3)
i18n (0.7.0, 0.6.11)
io-console (0.3)
jbuilder (2.2.6)
journey (1.0.4)
jquery-rails (3.1.2, 1.0.19)
json (1.8.1, 1.5.5)
mail (2.5.4)
mime-types (1.25.1)
mini_portile (0.6.1)
minitest (5.5.0, 5.4.3, 2.5.1)
multi_json (1.10.1)
multi_test (0.1.1)
nokogiri (1.6.5 x86-mingw32)
pg (0.17.1 x86-mingw32)
polyglot (0.3.5)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (4.1.1, 3.2.21)
railties (4.1.1, 3.2.21)
rake (10.4.2, 10.4.0, 0.9.2.2)
rb-notifu (0.0.4)
rb-readline (0.5.1)
rdoc (4.2.0, 3.9.5)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
rubyzip (1.1.6, 0.9.9)
sass (3.4.9, 3.2.19)
sass-rails (4.0.5, 3.2.6)
sdoc (0.4.1)
selenium-webdriver (2.35.1)
shoulda-matchers (2.7.0)
sprockets (2.11.0, 2.2.3)
sprockets-rails (2.2.2)
sqlite3 (1.3.10 x86-mingw32, 1.3.8 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
tiny_tds (0.6.2 x86-mingw32)
treetop (1.4.15)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.42)
tzinfo-data (1.2014.10)
uglifier (2.6.0)
wdm (0.1.0)
websocket (1.0.7)
will_paginate (3.0.4)
xpath (2.0.0)
Has anyone got any suggestions?
So the gripe seems to be around the location of the PID file, which doesn't make a lot of sense, but you're also not running rails in the context of your install.
Try this and see what it does:
bundle exec rails s
From the hint of Jason Mcmunn I could find a way. The problem was solved by deleting the \tmp\pids\pids\server.pid file. Thanks.
I'm trying to use jekyll-coffeescript on Fedora 19 to get my octopress working. 'rake generate' keeps failing, I'm not sure why, I think all the dependencies are installed ok. I have tried installing loads of different modules but none of them solve the problem. I have nodejs installed and rubyracer.
If you need anymore info from me to help, let me know and I'll post it.
this is for an octopress install.
#( 09/04/14# 9:07am )( tim#localhost ):~/Workspace/Development/octopress#source✔
rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Dependency Error: Yikes! It looks like you don't have jekyll-coffeescript or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- json' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
/home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:56:in `rescue in block in gracefully_require': jekyll-coffeescript (Jekyll::Errors::MissingDependencyException)
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:45:in `block in gracefully_require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:44:in `each'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:44:in `gracefully_require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll.rb:141:in `<top (required)>'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/bin/jekyll:6:in `require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/bin/jekyll:6:in `<top (required)>'
from /home/tim/bin/jekyll:23:in `load'
from /home/tim/bin/jekyll:23:in `<main>'
#( 09/04/14# 9:09am )( tim#localhost ):~/Workspace/Development/octopress#source✔
gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
blankslate (2.1.2.4)
bundler (1.7.2)
celluloid (0.15.2)
chunky_png (1.3.1, 1.2.7)
classifier-reborn (2.0.1)
coffee-script (2.3.0, 2.2.0)
coffee-script-source (1.7.1, 1.6.1)
colorator (0.1)
commonjs (0.2.6)
compass (0.12.7, 0.12.6)
erubis (2.7.0)
execjs (2.2.1, 1.4.0)
fast-stemmer (1.0.2)
ffi (1.9.3)
fssm (0.2.10, 0.2.7)
haml (4.0.5)
hpricot (0.8.6)
io-console (0.4.2)
jekyll (2.3.0)
jekyll-coffeescript (1.0.1, 1.0.0)
jekyll-gist (1.1.0)
jekyll-paginate (1.0.0)
jekyll-sass-converter (1.2.0)
jekyll-sitemap (0.5.1)
jekyll-watch (1.1.0)
json (1.7.7)
kramdown (1.4.1)
libv8 (3.16.14.3 x86_64-linux, 3.11.8.13 x86_64-linux)
liquid (2.6.1)
listen (2.7.9, 0.4.7)
mercenary (0.3.4)
multi_json (1.7.1)
octopress-date-format (2.0.1)
octopress-hooks (2.2.1)
parslet (1.5.0)
posix-spawn (0.3.9)
psych (2.0.0)
pygments.rb (0.6.0)
rack (1.5.2)
rack-protection (1.5.3)
rake (10.3.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdiscount (2.1.7.1)
rdoc (4.0.1)
redcarpet (3.1.2)
RedCloth (4.2.9)
ref (1.0.2)
ruby_parser (3.1.1)
rubypants (0.2.0)
safe_yaml (1.0.3)
sass (3.3.8, 3.2.19)
sass-globbing (1.0.0)
sassy-maps (0.4.0)
sexp_processor (4.1.5)
sinatra (1.4.5)
stringex (1.4.0)
therubyracer (0.12.1, 0.11.3)
tilt (1.4.1)
timers (1.1.0)
toml (0.1.1)
yajl-ruby (1.1.0)
I found this very helpful blogpost, basically you need to install RVM and setup ruby correctly, the steps are listed in the following post:
https://gist.github.com/lowstz/1739538
I have been coding in rails3 and have all the dependencies resolved. Now, I have moved back to rails 2 and there are lots of dependency issues. Is there any sane approach to make sure that all the gems and dependencies are resolved automatically based on the current rails version?
I keep getting this error
`default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)
Error Log
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:90:in `<class:Base>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:85:in `<module:Generator>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:48:in `<module:Rails>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:6:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator.rb:37:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/bin/rails:15:in `<top (required)>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `load'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `<main>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `eval'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `<main>'
Gem List
*** LOCAL GEMS ***
actionmailer (3.2.13, 2.3.12, 2.3.8)
actionpack (3.2.13, 2.3.12, 2.3.8)
activemodel (3.2.13)
activerecord (3.2.13, 2.3.12, 2.3.8)
activeresource (3.2.13, 2.3.12, 2.3.8)
activesupport (3.2.13, 2.3.12, 2.3.8)
arel (3.0.2)
bourbon (3.0.1)
builder (3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
cancan (1.6.10)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
commonjs (0.2.6)
daemons (1.1.9)
delayed_job (3.0.5)
delayed_job_active_record (0.4.4)
erubis (2.7.0)
execjs (1.4.0)
formtastic (2.2.1)
formtastic-bootstrap
(2.1.3)
haml (4.0.3)
hike (1.2.3)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (3.0.1, 2.3.0)
json (1.8.0)
kaminari (0.14.1)
less (2.3.2)
less-rails (2.3.3)
less-rails-fontawesome (0.5.0)
libv8 (3.11.8.17 x86-linux)
mail (2.5.4)
meta_search (1.1.3)
mime-types (1.23)
multi_json (1.7.7)
mysql (2.9.1)
mysql2 (0.3.11)
polyamorous (0.5.0)
polyglot (0.3.3)
rack (1.4.5, 1.1.6)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 2.3.8)
railties (3.2.13)
rake > (10.1.0, 10.0.4)
rdoc (4.0.1, 3.12.2)
ref (1.0.5)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
sass (3.2.9)
sass-rails (3.2.6)
sprockets (2.2.2)
therubyracer (0.11.4)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.14)
twitter-bootstrap-rails (2.2.7)
tzinfo (0.3.37)
uglifier (2.1.1)
why not make use of gemsets for each project?
create a file inside your app called .rvmrc
rvm use --create ruby-x.x.x-version#your_app_name
for exemple:
rvm use --create ruby-1.9.3-head#your_app_name
now when you'll run bundle it will gems to separate folder like in my case:
.rvm/gems/ruby-1.9.3-head#your_app_name
in this case switching from one app to another will load the needed gemset with gems for your app. It's like using RVM to switch between Ruby versions.