ruby on rails 3 - Problem with use of gems (mode devel vs. production) -


i use rails 3. in development mode installed gems testing (diff-lcs, nokogiri, rspec, webrat). since did that, if try cap-deploy production server, complains: "could not find diff-lcs in of sources (bundler::gemnotfound)"

i don't want install them on server, because don't need testing purpose gems on production server. can put in gemfile maybe exclude them production mode?

or else how can handle this?

thank answering questiion struggling beginner...

you can put gems in own group this:

group :development, :test   gem 'diff-lcs' end 

this page explains groups in more details: http://gembundler.com/groups.html


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -