Skip to content

Instantly share code, notes, and snippets.

@r38y
Created October 27, 2009 18:05
Show Gist options
  • Save r38y/219790 to your computer and use it in GitHub Desktop.
Save r38y/219790 to your computer and use it in GitHub Desktop.
module MothershipHelper
def mothership(magazine, file)
render :file => File.join(RAILS_ROOT, 'public', 'system', 'mothership', magazine, file)
rescue => e
if e.class == ActionView::MissingTemplate
Exceptional.handle(e, controller, request, params)
else
raise(e)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment