rails html to pdf

monicalouse

New Member
I have the following action in a controller\[code\]def save client = Pdfcrowd::Client.new("asdads", "asdads") pdf = client.convertHtml(params[:gender]) send_data(pdf, :filename => "untitled.pdf", :type => "application/pdf", :disposition => "attachment")rescue Pdfcrowd::Error => why render :text => whyend\[/code\]I want to get Html code from the view and then convert it to pdf I am using the pdfcrowd gemI also have this line in my view: \[code\]<% params[:gender => compareGender(@task) ] %>\[/code\]compareGender is a method that returns svg codeThis is not working can someone suggest an alternative solution?
 
Top