OSDN Git Service

8386ed263413c623319334b2f5d9bba10d081250
[pettanr/pettanr.git] / app / controllers / authors_controller.rb
1 class AuthorsController < ApplicationController
2   before_filter :authenticate_author!, :only => [:index, :show]
3   def index
4     @authors = Author.all
5
6     respond_to do |format|
7       format.html # index.html.erb
8     end
9   end
10
11   def show
12     @author = Author.find(params[:id])
13
14     respond_to do |format|
15       format.html
16     end
17   end
18
19 end