undefined method `otp_code_token' for #<User:0x00005611ff730138>
Did you mean? otp_code
Showing /home/davidnghk/App6/fc4s/code/app/views/devise/registrations/edit.html.erb where line #91 raised:undefined method `dark?' for #<RQRCode::QRCode:0x00007f8f111d7200>
<tr> <% qr.modules.each_index do |y| %> <% if qr.dark?(x,y) %> <td class="black"/> <% else %> <td class="white"/>
def show respond_to do |format| format.html {} format.pdf do html = render_to_string( template: 'sales/show.pdf.erb', page_size: 'A4', margin: { bottom: 25 }, footer: { content: render_to_string('shared/footer') } layout: 'layouts/application.pdf.erb') pdf = WickedPdf.new.pdf_from_string(html) send_data(pdf, filename: "sale-#{@sale.our_ref}.pdf", type: 'application/pdf', disposition: :attachment) end end end