# -*- encoding : utf-8 -*- class Advisories::AdvisoriesController < Advisories::BaseController before_filter :authenticate_user! before_filter :find_advisory, :only => [:show] load_and_authorize_resource def index @advisories = @advisories.paginate(:page => params[:page]) end def show end protected def find_advisory @advisory = Advisory.where(:advisory_id => params[:id]).limit(1).first if params[:id].present? end end