You may need to give a relative path perhaps.
On 20 May 2010 10:44, Marco Antonio Filho
<marcoafilho-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi everyone,
>
> I am having a lot of troubles with this issue the past few days and I would
> like any suggestions to try to solve this.
>
> I want to generate a PDF that has a really big report table from a given
> HTML (I am not using wicked_pdf plugin because the only thing I want from
> the HTML is that table. that being said I preferred to use the prawnto
> plugin).
>
> So what I am trying to do is parse the HTML using Nokogiri. I did something
> like this in my reports controller: *@doc = Nokogiri::HTML(open("
> http://localhost/reports/1"))*. The problem is that if I do this it
gives
> me a Timeout error. I can parse almost any webpages that are not inside my
> own project.
>
> Well, my questions are: There is a better approach than doing this? Is
> there someway that I can use open-uri library to open my own project?
>
> I know that I could use the prawnto to generate a table for the report, but
> the thing is that there are a lot of kinds of reports and for each one
there
> is a kind of calculation. So I am trying to bypass this by parsing the
HTML.
>
> Thanks in advance.
>
> Regards,
> Marco Antonio
>
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
--
Nandri(Thanks in Tamil),
Amala Singh
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.