Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using wicked_pdf with rails 3 #13

Closed
mikewilsonuk opened this issue Oct 10, 2010 · 3 comments
Closed

Using wicked_pdf with rails 3 #13

mikewilsonuk opened this issue Oct 10, 2010 · 3 comments

Comments

@mikewilsonuk
Copy link

wicked_pdf looks like it will do exactly what I want, but I'm struggling to get it working with rails 3. I'm new to rails, so I may be doing something really dumb. When I get to the install instructions, I figured I needed to do 'rails plugin install ...' instead of 'script/plugin install ...'. The next step is 'script/generate wicked_pdf'. What is the rails 3 equivalent of that? I tried the obvious 'rails generate wicked_pdf' but that says 'Could not find generator wicked_pdf.'.

Can wicked_pdf be used with rails 3 as it is, or am I wasting my time?

Thanks, Mike Wilson

@mikewilsonuk
Copy link
Author

I made some more progress: it looks like I just need to copy the initialiser instead of running 'script/generate'. Now the downloaded PDF is a file with 10 blank lines.

@mileszs
Copy link
Owner

mileszs commented Oct 10, 2010

Until we can get it rolled into this repository, you should try this fork for Rails 3 work: http://github.com/tiennou/wicked_pdf

@mikewilsonuk
Copy link
Author

Thanks for the advice. I kept on researching and think PDFKit is an easier solution for what I'm trying to do. I'll use that for now and come back to wicked_pdf if I need the extra power.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants