Not a fan of how url's are constructed here.  I'd prefer using
```ruby
router = respond_to?(:hydra_editor) ? hydra_editor : self
record.new_record? ? router.records_path : router.record_path(record)
```