You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/controllers/asciicasts_controller.rb

14 lines
245 B
Ruby

class AsciicastsController < ApplicationController
respond_to :html, :json
def index
@asciicasts = Asciicast.order("created_at DESC")
end
def show
@asciicast = Asciicast.find(params[:id])
respond_with @asciicast
end
end