I've tried to do:
rails generate cucumber:install —rspec —capybara
but I'm getting the following error:
Could not find generator cucumber:install.
I've included my Gemfile here http://pastebin.com/cDryD448 - bundle install and bundle update have both been run, as has gem update.
It's rails 3.1.0.
You are missing the gem 'cucumber-rails' line :)
Related
I have been trying to add the device gem in my rails app so I added
gem 'devise' to my gem file and i ran
bundle install
but when i'm trying to run
rails generate devise:install
I'm getting this error:
Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'
what should i do to make it install?
The better way to add gem is going to https://rubygems.org and search specify gem
for your situation you should add gem 'devise', '~> 4.7', '>= 4.7.1' to your Gemfile, then go back to console type bundle install
is it maybe just error you wrote "bunBle install", you should use 'bundle install' also check result after you run this command if everything is okay and run this command to be sure devise is installed 'gem list --local devise'
i'm trying to make an scaffofold on rails V 5.2.1 but i have the following error
i already tried gem pristine --all
but not works thanks any help please
Try bundle install..
The error which I could see in scaffold is Rails couldn't find the gem nokogiri .. make sure that your gemfile has the gem and then try running it
when tried to start server rails s i have got
Could not find minitest-5.9.0 in any of the sources
Run `bundle install` to install missing gems.
i did gem install minitest -v 5.9.0
Successfully installed minitest-5.9.0
1 gem installed
also gem list
minitest (5.9.0, 4.7.5)
but when i try rails s again i received the same error.
How could i fix it?
bundle install
If you have tried that, try
bundle update
This will update your gems and your gemfile.lock
Best to specify the version you want in your Gemfile, at present you have 2 versions which will be causing the conflicts.
Something like gem 'minitest ', '~> 5.90' would do the trick. Once you have done this do bundle update this will ensure you update Gemfile to use the correct version of specified gem
Um quite new to rails and um getting an error when run the command
rails s
it says
Could not find rake-0.9.2.2 in any of the sources
Run bundle install to install missing gems.
when I run bundle install nothing happened
my gem list has rake 0.9.2.2
what can go wrong?
my ruby version is 1.9.3
Thank you in advance
Remove all the versions of Rake ==> gem uninstall rake
Remove your gemfile.lock => rm Gemfile.lock
Remove gem 'rake' on your gemfile
Run bundle install
Install Rake manually : gem install rake --version=10.0.4
When you use command gem list, you will get a list of gem installed on your machine.
For example : rake (10.0.4, 10.0.3, 0.9.2.2)
Just see the console which gem is compatible with your application. It is already mentioned in the error log message.
Use
gem uninstall rake
Keep the suitable one and remove the version who is creating trouble. And then run rails s or bundle exec rails s
Try using rvm and go back to ruby 1.8.7 instead of 1.9.2. This fixed it for me. Don't forget to install rails again (sudo gem install rails while already on 1.8.7) if you have only installed rails for 1.9.3.]
I'm familiar with Rails 3, but not rails 2. I've just inherited a rails 2 project with no Gemfile, but a bunch of config.gem lines in config/environment.rb
I'm just wondering how I to install these. bundle install returns Could not locate Gemfile.
You can install gems in rails 2.x by using the rake command
rake gems:install
You can use bundle install if you use this guide:
http://gembundler.com/rails23.html
To have "backwards" compatibility for bundler.