2014-03-23から1日間の記事一覧

Dir.chdirについて

rails server コマンド の ソース をおっていたら、Dir.chdirという関数があった。 Dir.chdir(File.expand_path('../../', APP_PATH)) unless File.exists?(File.expand_path("config.ru")) 現在のパス上に「config.ru」がなければ、current path を引数の所…