require 'al_template' class HelloController < AlController def action_index() @my_message = "Hello world." AlTemplate.run("./index.rhtml") end def action_foo() @action = "foo" AlTemplate.run("./foobar.rhtml") end def action_bar() @action = "bar" AlTemplate.run("./foobar.rhtml") end # 追加 def action_redirect() Alone.redirect_to( make_uri(action:"foo") ) end end