Ruby on rails where is the real issue? -
after 2 years want working ruby on rails again, i've tried start project again, wasn't working, followed instructions written 2 years ago. think application has dependency problem or don't know, can give advice how can find source of problem, have tried google.
i've tried:
bundle update bundle install rake db:create bundle pack rake install
i got following error when using rake db:create or other rake commands:
warning: cucumber-rails required outside of env.rb. rest of loading being defered until env.rb called. avoid warning, move 'gem cucumber-rails' under group :test in gemfile rake aborted! no such file load -- rspec /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in require' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `block in load_dependency' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/bundler/gems/rspec-rails-matchers-488d2cadcd9f/lib/rspec-rails-matchers.rb:1:in `<top (required)>' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require' /home/elemer/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require' /home/elemer/railsapp/newest/railsapp/config/application.rb:7:in `<top (required)>' /home/elemer/railsapp/newest/railsapp/rakefile:4:in `require' /home/elemer/railsapp/newest/railsapp/rakefile:4:in `<top (required)>' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /home/elemer/railsapp/newest/railsapp/rails/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' /home/elemer/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `eval' /home/elemer/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `<main>' (see full trace running task --trace)
if have ideas please share me. thank you.
my gemfile:
source 'http://rubygems.org' gem 'rails', '3.0.9' gem 'rake' # bundle edge rails instead: # gm 'rails', :git => 'git://github.com/rails/rails.git' #gem 'sqlite3-ruby', :require => 'sqlite3' gem "cancan" gem 'racc' gem 'jquery-rails' gem 'paperclip', '2.3.8' gem 'workflow' gem 'pg' gem 'prawn' # pdf creation gem 'yaml_db' gem 'net-ldap' gem 'whenever', :require => false gem 'zip' gem "bcrypt-ruby", :require => "bcrypt" gem 'kaminari' gem 'remotipart' gem 'meta_where' gem 'meta_search' gem 'delayed_job' gem 'rack-ssl', :require => 'rack/ssl' gem 'dalli' #gem 'silent-postgres' # use unicorn web server # gem 'unicorn' # deploy capistrano # gem 'capistrano' # use debugger # gem 'ruby-debug' # bundle gems: # gem 'bj' # gem 'nokogiri' # gem 'sqlite3-ruby', :require => 'sqlite3' # gem 'aws-s3', :require => 'aws/s3' # bundle gems local environment. make sure # put test-only gems in group generators # , rake tasks available in development mode: # group :development, :test # gem 'webrat' # end group :cucumber, :test, :development gem "autotest" gem 'cucumber' gem 'cucumber-rails' gem 'rspec-rails', '~> 2.4' gem 'sqlite3' gem 'silent-postgres' gem 'selenium-webdriver' gem "bermuda" gem 'capybara', '1.1.1' gem 'rspec-rails-matchers', :git => "http://github.com/afcapel/rspec-rails-matchers.git" gem 'simplecov' gem 'simplecov-rcov' gem 'launchy' gem 'factory_girl', '2.1.0' gem 'factory_girl_rails', '1.2.0' gem 'database_cleaner' end
the answer in message. per gemfile, cucumber in both :development , :test group. should in :test group.
group :cucumber, :test, :development gem "autotest" gem 'cucumber'
Comments
Post a Comment