This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format.pdf do | |
html = ApplicationController.new.render_to_string( | |
template: 'pdfs/test', | |
formats: [:pdf], | |
layout: 'layouts/pdf', | |
assigns: { user: @user }, | |
encoding: 'UTF-8' | |
) | |
Ferrum::Browser.new(timeout: 7).tap do |browser| | |
browser.content = html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All AWS C9 envments | |
https://eu-central-1.console.aws.amazon.com/cloud9/home?region=us-east-1 | |
# Instance management | |
https://console.aws.amazon.com/ec2/home?region=eu-central-1#Instances:sort=instanceId | |
# Create AWS C9 environment | |
https://eu-central-1.console.aws.amazon.com/cloud9/home/create | |
Setting - set tabs to 2 |
OlderNewer