下表の環境で動作確認はしましたが、継続的に利用できることや不具合が生じないことを保証するものではありません。 無保証ですので一切の責任を負わないものとします。自己責任でご利用ください。
項目 | 値 |
---|---|
RedMica | v2.4.1.stable (based on Redmine 5.1.1.devel) |
class Membership < RedmineBase | |
attr_accessor :id, :project_id, :user_id, :role_ids | |
def project=(attrs = {}) | |
self.project_id = attrs[:id] | |
end | |
def project | |
if self.project_id | |
return Project.all.find do |project| |
# coding: utf-8 | |
require 'rubygems' | |
require 'thinreports' | |
# Prepare sample data. | |
data = [] | |
my_info = { | |
my_name: 'Matsukei Co., Ltd.', |
# coding: utf-8 | |
require 'rubygems' | |
require 'thinreports' | |
require 'open-uri' | |
def open_chart(*params) | |
open('http://chart.googleapis.com/chart?' + URI.encode(params.join('&'))) | |
end |
# coding: utf-8 | |
class VisitorPassController < ApplicationController | |
def create_pass | |
visitor = Visitor.find(params[:id]) | |
report = ThinReports::Report.new layout: File.join(Rails.root, 'app', 'reports', 'visitor_pass.tlf') | |
report.start_new_page do |page| | |
# jpg_filepath method will return the path of JPEG file. | |
# e.g. "Rails.root/photos/visitor_001.jpg" | |
page.item(:photo).src(visitor.jpg_filepath) |