Internal Server Error

undefined method `to_a' for "# encoding: sjis\n#\n# Copyright (C) 2003-2005 Kouichirou Eto\n# All rights reserved.\n# This is free software with ABSOLUTELY NO WARRANTY.\n#\n# You can redistribute it and/or modify it under the terms of \n# the GNU General Public License version 2.\n#\n\n$LOAD_PATH << '..' unless $LOAD_PATH.include?('..')\n\nmodule Qwik\n class Action\n D_christel = {\n :dt => 'Takigawa Christel plugin',\n :dd => 'You can embed Takigawa Christel image.',\n :dc => \"* Example\n{{christel\nThis is Takigawa Christel plugin.\n}}\n {{christel\n This is Takigawa Christel plugin.\n }}\n\n{{christel\nYou can embed images.\nhttp://qwik.jp/.theme/i/login_qwik_logo.gif\n}}\n {{christel\n You can embed images.\n http://qwik.jp/.theme/i/login_qwik_logo.gif\n }}\n\n{{christel(640)\nYou can see bigger one.\n}}\n {{christel(640)\n You can see bigger one.\n }}\n\"\n }\n\n Dja_christel = {\n :dt => '\x91\xEA\x90\xEC\x83N\x83\x8A\x83X\x83e\x83\x8B\x83v\x83\x89\x83O\x83C\x83\x93',\n :dd => '\x91\xEA\x90\xEC\x83N\x83\x8A\x83X\x83e\x83\x8B\x82\xB3\x82\xF1\x82ɑ\xE3\x82\xE8\x82ɂ\xB5\x82\xE1\x82ׂ\xC1\x82Ă\xE0\x82炢\x82܂\xB7\x81B',\n :dc => \"* Example\n{{christel\n\x91\xEA\x90\xEC\x83N\x83\x8A\x83X\x83e\x83\x8B\x83v\x83\x89\x83O\x83C\x83\x93\x82ł\xB7\n}}\n {{christel\n \x91\xEA\x90\xEC\x83N\x83\x8A\x83X\x83e\x83\x8B\x83v\x83\x89\x83O\x83C\x83\x93\x82ł\xB7\n }}\n\n{{christel\n\x89摜\x82\xE0\x96\x84\x82ߍ\x9E\x82߂܂\xB7\nhttp://qwik.jp/.theme/i/login_qwik_logo.gif\n}}\n {{christel\n \x89摜\x82\xE0\x96\x84\x82ߍ\x9E\x82߂܂\xB7\n http://qwik.jp/.theme/i/login_qwik_logo.gif\n }}\n\n{{christel(640)\n\x91傫\x82\xAD\x82\xB5\x82Ă݂܂\xB5\x82\xBD\n}}\n {{christel(640)\n \x91傫\x82\xAD\x82\xB5\x82Ă݂܂\xB5\x82\xBD\n }}\n\"\n }\n\n def plg_christel(width = 320)\n width = width.to_i.to_s\n content = yield\n message, image_url = content.to_a\n message.chomp!\n image_url.chomp! if image_url\n query_str = {\n\t:m => message.set_page_charset.to_utf8,\n\t:u => image_url\n }.to_query_string\n url = \"http://gedo-style.com/crstl/crstl.php?\#{query_str}\"\n return [:img, {:src=>url, :width=>width}]\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 TestActChristel < Test::Unit::TestCase\n include TestSession\n\n def test_all\n ok_wi([:img, {:width=>'320',\n\t\t:src=>\"http://gedo-style.com/crstl/crstl.php?m=a\"}],\n\t \"{{christel\\na\\n}}\")\n ok_wi([:img, {:width=>'320',\n\t\t:src=>\"http://gedo-style.com/crstl/crstl.php?m=a&u=b\"}],\n\t \"{{christel\\na\\nb\\n}}\")\n ok_wi([:img, {:width=>'640',\n\t\t:src=>\"http://gedo-style.com/crstl/crstl.php?m=a\"}],\n\t \"{{christel(640)\\na\\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