before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
- before_filter :authenticate_reader, :only => [:top, :index, :show]
+ before_filter :authenticate_reader, :only => [:top, :index, :show, :stories, :by_author]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
public_list
end
+ def stories
+ has_many_list
+ end
+
+ def by_author
+ filter_list
+ end
+
def show
@item = Comic.show(params[:id], @operators)
respond_to do |format|