2009-05-21から1日間の記事一覧

Railsでrenderする時のステータスコードの指定方法。

http://api.rubyonrails.org/classes/ActionController/Base.html render :text => "error", :status => 500 render :text => "error", :status => :internal_server_error statusをシンボルで指定する場合は、lib/action_controller/status_code.rbを参照。…