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.
|
class AsciicastsController < ApplicationController
|
|
PER_PAGE = 20
|
|
|
|
respond_to :html, :json
|
|
|
|
def index
|
|
@asciicasts = Asciicast.
|
|
order("created_at DESC").
|
|
page(params[:page]).
|
|
per(PER_PAGE)
|
|
end
|
|
|
|
def show
|
|
@asciicast = Asciicast.find(params[:id])
|
|
respond_with @asciicast
|
|
end
|
|
|
|
end
|