[Rails] Re: Rails 3 application capable of generating an offline version of itself for download as zip archi
Just throwing in an idea, assuming you would want to download these for
documentation/printing purposes :
Why not generate pdf's of all the entries on your website using a gem,
saving them to a specific folder, zip them up with another gem and then
force a download when entering a specific url/triggering a specific
action?
Here's some information to get your adventure started:
http://railscasts.com/episodes/78-generating-pdf-documents
http://railscasts.com/episodes/153-pdfs-with-prawn
http://rubyzip.sourceforge.net/
http://stackoverflow.com/questions/11547689/zipping-files-in-a-directory-with-ruby-on-rails
http://stackoverflow.com/questions/1544446/force-download-of-file-in-the-public-directory-from-a-controller-action
Good luck! If you have more questions, let me know.
Cheers,
Nick
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/47a19f10995bf6491b64b41669b314c0%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home