class BillingPeriodsController < ApplicationController
  before_filter :fetch_billing_periods

  def index

  end

  def new
  end

  def edit
  end

  def create
  end

  def destroy
  end


private
  def fetch_billing_periods
    @billing_periods = current_user.billing_periods
  end

end

class BillingPeriodsController < ApplicationController
  before_filter :fetch_billing_periods

  def index
    @new_bp = BillingPeriod.new
  end

  def create
  end

  def destroy
  end


private
  def fetch_billing_periods
    @billing_periods = current_user.billing_periods
  end

end

Remove new and edit actions
Remove new and edit actions
