Controller
Ruby
code posted
created at 21 Aug 19:02
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
class StatusesController < ApplicationController # GET /statuses # GET /statuses.json def index @statuses = Status.last_day render json: @statuses end # GET /statuses/current # GET /statuses/current.json def current @status = Status.last render json: @status end end |
315 Bytes in 2 ms with coderay