20 lines
363 B
Ruby
20 lines
363 B
Ruby
class ApiGenresController < ApplicationController
|
|
|
|
# have to be signed in currently to see this screen
|
|
before_filter :signed_in_user
|
|
|
|
#respond_to :json, :xml
|
|
respond_to :html
|
|
|
|
def index
|
|
@genres = Genre.find(:all)
|
|
end
|
|
|
|
def show
|
|
@genre = Genre.find(params[:id])
|
|
gon.genre_id = @genre.id
|
|
gon.description = @genre.description
|
|
end
|
|
|
|
end
|