rails 3 and PDFkit
问题 I'm trying to follow this tutorial. When I'm adding .pdf to my url it does nothing. My controller has: respond_to :html, :pdf. My mime type has been declared. I tried this too: respond_to do |format| format.html format.pdf { html = render_to_string(:layout => false , :action => "www.google.fr") kit = PDFKit.new(html) send_data(kit.to_pdf, :filename => "candidats.pdf", :type => 'application/pdf') return # to avoid double render call } end but it does not work and I don't get errors. My browser