```ruby
class RepositoriesController < InheritedResources::Base

  defaults finder: :find_by_path!

  load_and_authorize_resource :except => [:index, :show]

  actions :index, :show, :create, :destroy

  def create
    resource.user = current_user
    super
  end

end
```

Allow updating metadata of repositories.
user
```ruby
class RepositoriesController < InheritedResources::Base

  defaults finder: :find_by_path!

  load_and_authorize_resource :except => [:index, :show]

  def create
    resource.user = current_user
    super
  end

end
```
assistant