I use prawn and prawn_rails gem, latter gem allows to use .pdf.prawn views https://github.com/Whoops/prawn-rails
Or better prawn-rails gem, which is more updated, and pretty similar (my project is old and I started using prawn_rails gem long time ago) https://github.com/cortiz/prawn-rails In the view you must call prawn_document: prawn_document do |pdf| pdf.text "Hello World" end Then, in your controller, I enable pdf format for show action, and add link to download pdf using show action: conf.show.formats << :pdf conf.action_links.add :pdf, :type => :member, :page => true, :parameters => {:format => 'pdf'}, :action => 'show' El viernes, 3 de febrero de 2017 20:09:35 (CET) Chee Chong Hwa escribió: > Hi Benjamin > > Any chance of attaching a minimal project on how you use prawn with > actvive_scaffold ? > > TIA > > On Friday, 3 February 2017 20:17:06 UTC+8, bencarsal wrote: > > Hi, > > > > I'm using Prawn, > > > > Benjamín > > > > > > El 03-02-2017 a las 1:43, Chee Chong Hwa escribió: > > > > Hi All > > > > I need to generate a payslip to PDF. Which PDF gem is most suited for > > usage with Active_scaffold ? > > > > TIA -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
