wicked-gem

wicked pdf side issue

南笙酒味 提交于 2019-12-06 14:58:24
问题 I'm exporting a table using wicked pdf here is the controller that use wicked def print_invoice respond_to do |format| format.pdf{ send_data render( ####### WICKED CODE ###### :pdf => "invoices", :margin => {:top=> 0,:bottom => 0,:left=> 0,:right => 0}, :orientation => "Landscape", :print_media_type => true,:disable_smart_shrinking => true) ) ####### END WICKED CODE ###### } end end Here is the print view <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <

Wicked gem cannot find wedding ID in update action

只谈情不闲聊 提交于 2019-12-05 18:37:09
I'm trying to implement the 'Wicked' gem for wizards and cannot figure out this error for the life of me. Already referenced Ryan bates railscast #346 and the step by step tutorial by schneems . I have 2 controllers: Weddings and Wedding_steps. The user initially creates a Wedding and after the create action is redirected to the Wedding_steps controller (which uses Wicked) to update the wedding model with additional info. The wedding_id is successfully detected in the first step weddingdetails, but after submitting that step, I get the following error: ERROR ActiveRecord::RecordNotFound in

wicked pdf side issue

為{幸葍}努か 提交于 2019-12-04 21:52:20
I'm exporting a table using wicked pdf here is the controller that use wicked def print_invoice respond_to do |format| format.pdf{ send_data render( ####### WICKED CODE ###### :pdf => "invoices", :margin => {:top=> 0,:bottom => 0,:left=> 0,:right => 0}, :orientation => "Landscape", :print_media_type => true,:disable_smart_shrinking => true) ) ####### END WICKED CODE ###### } end end Here is the print view <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <table border="1" align="left"> </table> </body> </html> Here is the pdf that I'm getting I