Ruby/rails/json

提供: 初心者エンジニアの簡易メモ
ナビゲーションに移動 検索に移動

json出力

result = {status: "ok", notice: "success"}
render :json => result