Hi,
I have a web application with Ruby on Rails
Rails 5.2.3, Ruby 2.5.5p157
I need to generate PDF document.
Whenever I try to rotate on the pdf, i get this error
undefined method `has_key?' for -129.6832654823495:Float
even with the code in the manual like:
fill_circle [250, 200], 2
12.times do |i|
rotate(i * 30.0, :origin => [250, 200]) do
stroke_rectangle [350, 225], 100, 50
draw_text "Rotated #{i * 30}°", :size => 10, :at => [360, 205]
end
end
the value changes linked with the angle.. but I don't know what to do and I need it!!!
Actually, i'm refactoring a old app, made with rail3.0 and Prawn 0.xx and it was working like a charm, now I struggle with your new version
Please help!!!