David Ng
Joined 1/27/2019
David Ng said over 2 years ago on Creating PDF files with WickedPDF :
Thanks for the prompt reply.  Two issues

1. image 
Same cod and same image, it works on the report, but image does not show on header.  The code is like this

 <header>
  <table style="height: 50px; line-height: 3px;">
    <tbody>
      <tr>
        <td style="width: 70px; padding-left: 00px;">
          <%=  wicked_pdf_image_tag image_url('HKT-logo.jpeg'), size: "125x125" %>
        </td>
        <td style="width: 800px;">
        <h2 style="font-size: 30px;">SITES TESTING CO., LTD.</h2>
        </td>
      </tr>
    </tbody>
  </table>
</header>

2. The variable
The same variable @sale is accessible in the report, but not accessible in footer.  
I tried HTML format, No Luck. The code

           header: { html: { template: 'users/header'....

Any ideas? 



David Ng said over 2 years ago on Creating PDF files with WickedPDF :
Sorry, that is a typo.  I got it all work out.

Thanks a lot.  

David Ng said over 2 years ago on Rails API - Authentication with JWT :
Hi, could I know the testing tools, which shows the JSON details and return values,  you are using in the Episodes?


David Ng said over 2 years ago on Rails API App - Authentication with JSON Web Tokens :
The Authentication with JSON Web Tokens works for 1 day and NOT authenticated with JWT after 1 day.

I find authorize_api_request. decoded_auth_token is false (due to http_auth_header?)

I suspect it due to the 24.hours exp of JWT.  

any idea? 

David Ng said almost 2 years ago on Hotwire :
It would be nice if you could demo Hotwire append record to turbo_frame_tag