Internal Server Error

undefined method `to_a' for "# encoding: sjis\n# This is a sample plugin for qwikWeb.\n# If you'd like to check the details of qwikWeb plugin, please see URL below.\n# http://qwik.jp/HowToMakePlugin.html\n\n$LOAD_PATH << '..' unless $LOAD_PATH.include?('..')\n\nmodule Qwik\n class Action\n D_sample = {\n :dt => 'Sample plugins',\n :dd => 'These are sample plugins.',\n :dc => \"* Example\nYou can show famous \\\"hello, world!\\\" string by this plugin.\n\nAs you know, this \\\"hello world\\\" plugin is an example to describe\nhow you can create your own plugin.\n\nPlease check this URL for detail.\nhttp://qwik.jp/HowToMakePlugin.html\n\n** hello world plugin\n {{hello}}\n{{hello}}\n {{hello(\\\"qwik users\\\")}}\n{{hello(\\\"qwik users\\\")}}\nYou can specify the target in the argument.\n** hello world action\n [[.hello]]\n[[.hello]]\nYou can see a page with 'hello world' message.\n** Monospace plugin\n{{tt(\\\"This is a test.\\\")}}\n {{tt(\\\"This is a test.\\\")}}\nYou can make the string as monotype font face.\n\n** Quote plugin\n{{quote\nThis is a text to quote.\n}}\n {{quote\n This is a text to quote.\n }}\nYou can make block quote of the string.\n\" }\n\n def plg_hello(target='world')\n return [:strong, \"hello, \#{target}!\"]\n end\n\n def act_hello\n c_notice('hello, world!') {\n\t'hi, there.'\n }\n end\n\n def plg_tt(text)\n return [:tt, text]\n end\n\n def plg_quote\n text = ''\n text = yield if block_given?\n ar = []\n text.each {|line|\n\tar << line\n\tar << [:br]\n }\n bq = [:blockquote, [:p, {:style=>'font-size:smaller;'}, *ar]]\n return bq\n end\n end\nend\n\nif $0 == __FILE__\n require 'qwik/test-common'\n $test = true\nend\n\nif defined?($test) && $test\n class TestActSample < Test::Unit::TestCase\n include TestSession\n\n def test_plg_hello\n ok_wi([:strong, 'hello, world!'], '{{hello}}')\n ok_wi([:strong, 'hello, qwik!'], '{{hello(qwik)}}')\n end\n\n def test_act_hello\n t_add_user\n res = session('/test/.hello')\n ok_xp([:title, 'hello, world!'], '//title')\n ok_in(['hi, there.'], '//div[@class=\"section\"]')\n end\n\n def test_plg_tt\n ok_wi([:tt, 't'], '{{tt(t)}}')\n end\n\n def test_plg_quote\n ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}]],\n\t '{{quote}}')\n ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}]],\n\t \"{{quote\\n\\n}}\")\n ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}, \"t\\n\", [:br]]],\n\t \"{{quote\\nt\\n}}\")\n ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}, \"t\\n\", [:br]]],\n\t \"{{quote\\n\\nt\\n}}\")\n ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'},\n\t\t\"t1\\n\", [:br],\n\t\t\"t2\\n\", [:br]]],\n\t \"{{quote\\nt1\\nt2\\n}}\")\n end\n end\nend\n":String ar = str.to_a[b, margin*2+1] ^^^^^ Did you mean? to_c to_f to_r to_i to_s
qwikWeb/0.8.1+20060201 at localhost:9190