phoenixとは、elixirで実装されたWeb framework Getting Startedを進めていくと、いろいろと学べるはず Adding pagesで新しくページを追加するところまでを学んでいるうちに、Postリクエストを処理する内容に寄り道したのでメモを残しておく ルーティング 基本はmethod "path", Controller, :action_nameをweb/router.exに設定していく resourcesを使うと、GET / POST / PUT / DELETEをまとめてルーティングしてくれたりする defmodule HelloPhoenix.Router do use HelloPhoenix.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session
