```ruby
class RegionsController < ApplicationController
  # Include Inherited Resources behaviour
  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```

Remove inherited resources from regions controller
user
```ruby
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 = collection
  end

  def show
    @region = resource
  end


  protected

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

end
```
assistant