I know that the shrimp is working because I have a show action that if I load the PDF load at the end of the show I add to Pdf.prawn. However, I have a form:
; "/ holder" ,: action => "generated", format: "pdf "), & Gt; & Lt;% = label_tag (: number, "how many students?")% & Gt; & Lt;% = text_field_tag (: calculation)% & gt; & Lt;% = hidden_field_tag: holder_id, value: @ holder% & gt; & Lt;% = submit_tag ("Generate Text Text")% & gt; & Lt;% end% & gt; It counts for derivative actions.
I have the following in my generated action:
generates DR generic: file name = & gt; "Print.pdf" Answer_ | Format | Format.html format.pdf {Render: Layout = & gt; False} end-end and my generated PDF looks like PRAN:
pdf.text "hello world" When I submit the form I get the url: http: // localhost: 3000 / gener.pdf and chrome fails to load PDF document Errors or alerts I found that I am getting: Rated holder in my god log / generated.pdf.erb which indicates that it is not searching for the .prawn file What am I doing wrong?
Do your action as follows: to generate a DR Respond_to | Format | Format.html format.pdf {info: filename = & gt; 'Print.pdf'} End End
Comments
Post a Comment