Skip to content

Instantly share code, notes, and snippets.

@jenlindner
Created October 11, 2017 21:19
Show Gist options
  • Save jenlindner/e2b9acdb9ce47db3a4c602dd04bdfe43 to your computer and use it in GitHub Desktop.
Save jenlindner/e2b9acdb9ce47db3a4c602dd04bdfe43 to your computer and use it in GitHub Desktop.
active_fedora_find_with_db_id
[root@repositorio ~]# cd /var/dc/
[root@repositorio dc]# bundle exec rails c -e production
Loading production environment (Rails 4.2.6)
2.3.1 :001 > ActiveFedora::Base.find('mc87pq86')
ActiveFedora: loading fedora config from /var/dc/config/fedora.yml
ActiveFedora: loading solr config from /var/dc/config/solr.yml
Attempted to init base path `prod`, but it already exists
ActiveFedora::ObjectNotFoundError: ActiveFedora::ObjectNotFoundError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment