Hi,

I know how to get a .html file and writing contents into a file in the
server.

eg.
 doc = Nokogiri::HTML(open("http://projectmadurai.org";).read)
              my_file = File.new("pm.html", "w")
              my_file.puts doc.inner_html
              my_file.close

I want to download a .pdf file in a similar way. How can I achieve this?
-- 
-- 
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 [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.

Reply via email to