Displaying 1 result from an estimated 1 matches for "collectionscontroller".
Did you mean:
collectioncontroller
2008 Sep 16
1
config.gem vs require 'somegem'
I am very confused by the config.gem statement in 2.1
If I put config.gem ''pdf-writer'' in my environment.rb I get the
following error when I try to instanciate a PDF object in my
controller with the statement pdf = PDF::Writer.new
uninitialized constant CollectionsController::PDF
so I try putting require ''pdf/writer'' in my environment.rb and the
application fails to load with:
no such file to load -- pdf-writer /usr/local/lib/site_ruby/1.8/
rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/
site_ruby/1.8/rubygems/custom...