On Tue, Oct 5, 2010 at 3:37 PM, Conor Nugent <[email protected]> wrote:
> Hi David, > > Thanks you so much for your reply. My development environment is snow > leopard and then I deploy to a ubuntu server. To be honest I'm just > trialling stuff at moment but strangely ran into problems getting > things working on snow leopard. I actually figured out what was going > on but I will definitely be looking at your advice when it comes to > deploying to ubuntu. > > Basically I figured out that the problem was due where/how the gem is > installed under RVM. I checked where the gem was installed which was > > /Users/conor/.rvm/gems/ruby-1.9.2-p0/bundler/gems/PDFKit-652209d > > I then ran the command recommended in the POST_INSTALL readme in tis > directory > > export TO=`which pdfkit | sed 's:/pdfkit:/wkhtmltopdf:'` && pdfkit > --install-wkhtmltopdf > > which installed wkhtmltopdf to > > /Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf > > I then set the configuration for PDFKit to point to this path in my > application.rb > > #pdfkit > config.middleware.use "PDFKit::Middleware" > PDFKit.configure do |config| > config.wkhtmltopdf = > '/Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf' > end > > Everything seems to be working so far > Conor - this is an old post and wanted to let you know that what you found and describe here completely saved my day as I just rebuilt my mac and am now using rvm.... this will teach me to think more like you and look for the post install readme when I hit problems! > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

