Module: WickedPdfHelper
- Defined in:
- lib/wicked_pdf_helper.rb
Instance Method Summary collapse
- #wicked_pdf_image_tag(img, options = {}) ⇒ Object
- #wicked_pdf_javascript_include_tag(*sources) ⇒ Object
- #wicked_pdf_javascript_src_tag(jsfile, options = {}) ⇒ Object
- #wicked_pdf_stylesheet_link_tag(style) ⇒ Object
Instance Method Details
#wicked_pdf_image_tag(img, options = {}) ⇒ Object
6 7 8 |
# File 'lib/wicked_pdf_helper.rb', line 6 def wicked_pdf_image_tag(img, ={}) image_tag "file://#{Rails.root.join('public', 'images', img)}", end |
#wicked_pdf_javascript_include_tag(*sources) ⇒ Object
14 15 16 |
# File 'lib/wicked_pdf_helper.rb', line 14 def wicked_pdf_javascript_include_tag(*sources) sources.collect{ |source| wicked_pdf_javascript_src_tag(source, {}) }.join("\n").html_safe end |
#wicked_pdf_javascript_src_tag(jsfile, options = {}) ⇒ Object
10 11 12 |
# File 'lib/wicked_pdf_helper.rb', line 10 def wicked_pdf_javascript_src_tag(jsfile, ={}) javascript_src_tag "file://#{Rails.root.join('public','javascripts',jsfile)}", end |
#wicked_pdf_stylesheet_link_tag(style) ⇒ Object
2 3 4 |
# File 'lib/wicked_pdf_helper.rb', line 2 def wicked_pdf_stylesheet_link_tag(style) stylesheet_link_tag style, "file://#{Rails.root.join('public','stylesheets',style)}" end |