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

uninitialized constant Prawn::Core #3

Open
exocode opened this issue Sep 9, 2014 · 0 comments
Open

uninitialized constant Prawn::Core #3

exocode opened this issue Sep 9, 2014 · 0 comments

Comments

@exocode
Copy link

exocode commented Sep 9, 2014

Hi,

sorry short question:

I try to implement your form gem into my existing Bill < Prawn::Document. Prawn is installed correctly and is rendering my PDF.

Now I added gem 'prawn-blank' to my gemfile and try to use the form like this:

require "prawn"
require "prawn/blank"

Bill < Prawn::Document

def render_bill
    text_field(
        :at => [200,55],
        :name=>"text",
        :value=>"Try edit me!"
    )
end
end

# in controller

respond_to do |format|
          format.pdf do
            pdf = Bill.new(current_user, bill)
            send_data pdf.render,
                      type: "application/pdf",
                      disposition: "inline"
          end
        end


What I am doing wrong? Thank you!
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

1 participant