Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Created April 15, 2014 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyf/10743933 to your computer and use it in GitHub Desktop.
Save jeremyf/10743933 to your computer and use it in GitHub Desktop.
Work around
def datastream_to_show
super
rescue Exception => e
if params[:datastream_id] == 'thumbnail'
redirect_to 'path/to/default thumbnail'
return false
else
raise e
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment