the following steps, thank you Dave, works for me. For this scenario the necessary gems will be jailed local in the vendor folder of your app. Please follow this steps:
1. install the gems in RAILS_APP/vendor/ gem install --no-rdoc --no-ri color -i vendor/ gem install --no-rdoc --no-ri transaction-simple -i vendor/ gem install --no-rdoc --no-ri pdf-writer -i vendor/ 2. just add the following lines of code in your environment.rb, after the RAILS_Gem version constant assignment # force our app to use only vendor/gems ENV['GEM_PATH'] = File.expand_path(File.join(File.dirname(__FILE__), %w (.. vendor))) ENV['GEM_HOME'] = File.expand_path(File.join(File.dirname(__FILE__), %w (.. vendor))) 3. include a require "pdf/writer" on top of your application_controller.rb 4. restart the server and check locally if everything is fine 5. commit your changes and upload your code manually or via git push Thats it http://blog.stevensoroka.ca/2009/01/14/jailing-your-rails-gems gives additionally explanations ... -boris On 17 Mrz., 16:11, Boris Raeschler <[email protected]> wrote: > Hi, > > i´ ve got some trouble to start my app with the pdf-writer gem. I have > installed online the <i>color 1.4.0</i> and <i>transaction-simple > 1.4.0</i> and additionally <i>pdf-writer 1.1.8</i> > > In my controller i require the libs via require "pdf/writer" and > locally everything goes find. The trouble starts when i push > everything to the server. > > The server give me an error with > > no such file to load -- pdf/writer (MissingSourceFile) > > Who can help me? > > thanks in advance > > -boris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
