Skip to content

Instantly share code, notes, and snippets.

@rdougan
Created August 10, 2009 12:00
Show Gist options
  • Save rdougan/165154 to your computer and use it in GitHub Desktop.
Save rdougan/165154 to your computer and use it in GitHub Desktop.
private
def get_details
#get the title + thumbnail if it is vimeo
if self.site == "Vimeo"
logger.info "==============================="
v = Vimeo::Simple::Clip.info(self.reference_id)
#self.title = v.first["title"] if v.first
#self.thumbnail = v.first["thumbnail_medium"] if v.first
end
NameError (uninitialized constant Video::Vimeo):
app/models/video.rb:71:in `get_details'
app/controllers/videos_controller.rb:30:in `create'
app/middleware/flash_session_cookie_middleware.rb:15:in `call'
app/middleware/flash_session_cookie_middleware.rb:15:in `call'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment