class RegionsController < ApplicationController
# inherit_resources

  layout 'home'

  has_scope :depth, :default => 1, :only => :index

  # If no param is set, default to PER_PAGE
  before_filter :set_default_depth

  def index
    # @regions = collection
  end

  def show
    # @region = resource
  end


  protected

  def set_default_depth
    @depth ||= params[:depth] || 1
  end

end

class RegionsController < ApplicationController

  layout 'home'

  has_scope :depth, :default => 1, :only => :index

  # If no param is set, default to PER_PAGE
  before_filter :set_default_depth

  def index
    @regions = Region.all
  end

  def show
    @region = Region.find(params[:id])
  end


  protected

  def set_default_depth
    @depth ||= params[:depth] || 1
  end

end

Remove inherited resources from regions-controller
Remove inherited resources from regions-controller
