Skip to content

Instantly share code, notes, and snippets.

@tagrudev
Created November 26, 2012 14:29
Show Gist options
  • Save tagrudev/4148508 to your computer and use it in GitHub Desktop.
Save tagrudev/4148508 to your computer and use it in GitHub Desktop.
class Docushin::CollectionsController < ActionController::Base
layout 'docushin'
def index
@content = File.read(File.join(Rails.root, "doc", "docushin", "collections.yml")) rescue []
@sets = @content.nil? ? nil : YAML.load(@content)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment