Comments (12)
I was able to fix this, read how at: http://anlek.com/2011/09/wicked_pdf-working-in-rails-3-1/
from wicked_pdf.
Thank you for the response, @anlek.
What about the tests? Have anyone seen what is exposed above?
from wicked_pdf.
Sorry, I should clarify, it fixed the initial problem you were having, so the new issue never arose.
from wicked_pdf.
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.
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.
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:in
method_missing'
wicked_pdf (0.7.2) lib/wicked_pdf.rb:19:in initialize' wicked_pdf (0.7.2) lib/pdf_helper.rb:56:in
new'
wicked_pdf (0.7.2) lib/pdf_helper.rb:56:in make_pdf' wicked_pdf (0.7.2) lib/pdf_helper.rb:68:in
make_and_send_pdf'
wicked_pdf (0.7.2) lib/pdf_helper.rb:17:in render_with_wicked_pdf' app/controllers/order_controller.rb:13:in
block (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:in
respond_to'
app/controllers/order_controller.rb:10:in show' actionpack (3.1.0) lib/action_controller/metal/implicit_render.rb:4:in
send_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:in
process_action'
actionpack (3.1.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
from wicked_pdf.
Is this related to wicked_pdf_stylesheet_link_tag?
Are you using my money patching?
from wicked_pdf.
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.
Then I'd recommend starting a new issue.
from wicked_pdf.
It seems @MilesZ needs help to maintain this repo updated.
from wicked_pdf.
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.
@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)
- Wicked_pdf on ubuntu 22.04 HOT 6
- Intermittent Failures in PDF report generation tests
- Rendered PDF is malformed (grid css is not taking effect, images are not rendering) HOT 2
- Can't generate PDF in production
- progress and raise_on_all_errors options incompatible HOT 2
- Keeping `pdf_to_string` temporary files HOT 6
- Using weasyprint instead of wkhtmltopdf? HOT 2
- weasy_pdf? HOT 1
- lines between header, template and footer HOT 2
- White line between template and footer HOT 1
- ERROR: Failed to load PDF document. HOT 1
- wkhtmltopdf using Linux emulation not starting on FreeBSD HOT 6
- Generating background on full pages HOT 1
- Double encoding of URL parameters
- Missing usage of view_lookup to fetch template
- Bad render template with render_from_string. HOT 1
- Header doesn't render on pdf, but footer does. HOT 3
- Random "Error: PDF could not be generated!" after upgrade from 2.1 to 2.6.3 HOT 11
- WickedPDF gem issue HOT 1
- Gem breaks with Shakapacker v 7.0. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wicked_pdf.