So this is weird. I have this in one of my controllers:
f = open("http://www.google.com")
@s = f.read
And that's fine. I can echo @s back out in the view, and it works like
a charm. But the second I do this (in the controller):
doc = Hpricot(@s)
I get an error 500 (internal server error). I have rubygems, open-uri,
and hpricot all included. Any ideas what's going on? I'm under a
pressing deadline and this one's really got me stumped.
Thanks in advance!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---