ã¬ã³ã¿ã«ãµã¼ã㧠rails 使ããªãã¦ã ãåã url ã«ã¼ã«ã§ mvc ãããã dispatcher - gup.cgi #!/usr/local/bin/ruby require 'cgi' print "Content-type: text/html\n\n" cgi = CGI.new info = cgi.path_info.split("/") info[2] = "index" if info.length < 3 || !info[2] load info[1] + ".rb" app = eval(info[1].capitalize + ".new") app.instance_variable_set("@params" , cgi.params) app.__send__(info[2]) exit ã³ã³ããã¼ã© - test.rb (ä»ã®ã¨ãã v ãä¸ç·)
{{#tags}}- {{label}}
{{/tags}}