Skip to content

Instantly share code, notes, and snippets.

@meltzerj
Created May 20, 2011 03:31
Show Gist options
  • Select an option

  • Save meltzerj/982293 to your computer and use it in GitHub Desktop.

Select an option

Save meltzerj/982293 to your computer and use it in GitHub Desktop.
This is my error
Errno::ENOENT in ProfilesController#fetch_fb_picture
No such file or directory - https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/157351_567412775_2309291_q.jpg
Rails.root: /rubyprograms/dreamstill
Application Trace | Framework Trace | Full Trace
app/controllers/profiles_controller.rb:17:in `initialize'
app/controllers/profiles_controller.rb:17:in `open'
app/controllers/profiles_controller.rb:17:in `fetch_fb_picture'
@profile contains this: https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/157351_567412775_2309291_q.jpg
r = open(@picture)
image_data = r.read
file_size = r.length
mime_type = "image/jpeg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment