Giter Site home page Giter Site logo

Can't test on Rails 3.1 about wicked_pdf HOT 12 CLOSED

mileszs avatar mileszs commented on July 24, 2024
Can't test on Rails 3.1

from wicked_pdf.

Comments (12)

anlek avatar anlek commented on July 24, 2024

I was able to fix this, read how at: http://anlek.com/2011/09/wicked_pdf-working-in-rails-3-1/

from wicked_pdf.

kurko avatar kurko commented on July 24, 2024

Thank you for the response, @anlek.

What about the tests? Have anyone seen what is exposed above?

from wicked_pdf.

anlek avatar anlek commented on July 24, 2024

Sorry, I should clarify, it fixed the initial problem you were having, so the new issue never arose.

from wicked_pdf.

kurko avatar kurko commented on July 24, 2024

Thank you again, Anlek. However, the subsequent problem I mentioned happens after cloning the repo and running rake test, not related to wicked_pdf_stylesheet_link_tag itself.

Thank you for your response.

from wicked_pdf.

anlek avatar anlek commented on July 24, 2024

Ahh, I was actually going to modify the wicked_pdf gem however wasn't sure how to test both scenarios (rails <= 3 and rails 3.1). So for now I'm leaving it alone. Maybe when I have more time.

from wicked_pdf.

zziemke avatar zziemke commented on July 24, 2024

hi, somebody encountered this error after installing with the example code from the wiki page?

undefined method chomp' for nil:NilClass activesupport (3.1.0) lib/active_support/whiny_nil.rb:48:inmethod_missing'
wicked_pdf (0.7.2) lib/wicked_pdf.rb:19:in initialize' wicked_pdf (0.7.2) lib/pdf_helper.rb:56:innew'
wicked_pdf (0.7.2) lib/pdf_helper.rb:56:in make_pdf' wicked_pdf (0.7.2) lib/pdf_helper.rb:68:inmake_and_send_pdf'
wicked_pdf (0.7.2) lib/pdf_helper.rb:17:in render_with_wicked_pdf' app/controllers/order_controller.rb:13:inblock (2 levels) in show'
actionpack (3.1.0) lib/action_controller/metal/mime_responds.rb:195:in call' actionpack (3.1.0) lib/action_controller/metal/mime_responds.rb:195:inrespond_to'
app/controllers/order_controller.rb:10:in show' actionpack (3.1.0) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.1.0) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.1.0) lib/action_controller/metal/rendering.rb:10:inprocess_action'
actionpack (3.1.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'

from wicked_pdf.

anlek avatar anlek commented on July 24, 2024

Is this related to wicked_pdf_stylesheet_link_tag?
Are you using my money patching?

from wicked_pdf.

zziemke avatar zziemke commented on July 24, 2024

Nope, we added the sample code to a clean rails 3.1 installation

On 26 September 2011 18:37, Andrew Kalek
[email protected]
wrote:

Is this related to wicked_pdf_stylesheet_link_tag?
Are you using my money patching?

Reply to this email directly or view it on GitHub:
#52 (comment)

from wicked_pdf.

anlek avatar anlek commented on July 24, 2024

Then I'd recommend starting a new issue.

from wicked_pdf.

kurko avatar kurko commented on July 24, 2024

It seems @MilesZ needs help to maintain this repo updated.

from wicked_pdf.

dgdosen avatar dgdosen commented on July 24, 2024

I'm running into this css issue as well. I don't have many document types, but css support in rails 3.1 would be nice

from wicked_pdf.

kurko avatar kurko commented on July 24, 2024

@dgdosen you can use @anlek's solution or use the standard stylesheet_link_tag(), which works fine for me.

from wicked_pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.