From: Sig Dx Date: 2009-12-11T04:07:19+09:00 Subject: syntax issue Hello guys, I have hard time using Prawn (PDF library). I need to add to number_pages the font size [code] def number_pages(string, position) page_count.times do |i| go_to_page(i) str = string.gsub("","#{i+1}").gsub("","#{page_count}") text str, :at => position end end [/code] so I tried number_pages(" / ", [0, 0]), :size => 10 but i get syntax error, unexpected ',', expecting kEND However text "str", :at => [0, 0], :size => 10 works fine. Can anyone please let me know the difference between the 2 lines above? Thanks, I appreciate your help. Sig -- Posted via http://www.ruby-forum.com/.