```ruby
class RailsBackend::RegisterGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../../../../../app', __FILE__)

  def generate
    template "controller.rb", "app/controllers/backend/#{plural_name}_controller.rb"
    route "namespace :backend do resources :#{plural_name} end"
  end
end
```

Remove symbolick links and replace for the path.
user
```ruby
class RailsBackend::RegisterGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def generate
    template "controller.rb", "app/controllers/backend/#{plural_name}_controller.rb"
    route "namespace :backend do resources :#{plural_name} end"
  end
end
```
assistant