Skip to content

Instantly share code, notes, and snippets.

@jenlindner
jenlindner / gist:e2b9acdb9ce47db3a4c602dd04bdfe43
Created October 11, 2017 21:19
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
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://68aa9e17-f4e4-41c4-a3fd-3fe33214c0af",
"@type": "sc:Manifest",
"label": "[Click to edit label]",
"metadata": [],
"description": [
{
"@value": "[Click to edit description]",
"@language": "en"
@jenlindner
jenlindner / gist:d294f54628f57cf3a0e2e7463d8f4616
Last active August 23, 2016 19:07
sufia test app test failures with postgresql
Failures:
1) UsersController#index query users finds the expected user via display name
Failure/Error: expect(assigns[:users]).to include(u1)
expected #<ActiveRecord::Relation []> to include #<User id: 296, email: "user275@example.com", created_at: "2016-08-23 18:22:57", updated_at: "2016-08...RD2CqcTxsVbG2zDdsIEk", arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil, avatar: nil>
Diff:
@@ -1,2 +1,2 @@
-[#<User id: 296, email: "user275@example.com", created_at: "2016-08-23 18:22:57", updated_at: "2016-08-23 18:22:57", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: "Dr. Curator", address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: "jchrxMBUk2koRD2CqcTxsVbG2zDdsIEk", arkivo_subscription:
Organization Name Issue Action Context
Institute for Democracy Studies P3S (212) 423-9237 http://nextcity.org/daily/entry/the-problem-with-public-private-partnerships