# /app/controllers/users_controller.rb class UsersController < ApplicationController def signin @user = User.create({:name => params[:name], :password => params[:password]}) respond_to do |format| format.json { render :json => @user.to_json } end end end ã¢ããªå´ããã®ãªã¯ã¨ã¹ããåããã¨ãUserã¤ã³ã¹ã¿ã³ã¹ãæ°ããä½æãã¾ããããã§ã¯ãã»ãã¥ãªãã£é¢ã®å®è£ ã¯ç¡è¦ãã¦ãã¾ãã jsonã§ã¬ã¹ãã³ã¹ãè¿ãããã®ã§ãã¤ã³ã¹ã¿ã³ã¹ãto_jsonã§jsonåãããã®ãformat.jsonã§è¿ãã¾ãã // /Resources/signin.
{{#tags}}- {{label}}
{{/tags}}