Hi, I am looking at using Tidy to clean up some html, but having a few problems running it. The gem seems to be installed ok, But according to the rDoc I need to give the path of tidylib.so e.g. Tidy.path = ''/usr/lib/tidylib.so'' However this file does not seem to exist, any suggestions on what I may have missed? (using ms windows) -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> > I am looking at using Tidy to clean up some html, but having a few > problems running it. > > The gem seems to be installed ok, > > But according to the rDoc I need to give the path of tidylib.so > > e.g. > Tidy.path = ''/usr/lib/tidylib.so'' > > However this file does not seem to exist, any suggestions on what I may > have missed? > (using ms windows)did you install tidy itself or just the gem? You''ll need both... --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You may need to point to Tidy.dll if you''re on Windows (Just a guess; I really don''t know...it depends on how they built it). --Jeremy On 6/13/07, MArk <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > I am looking at using Tidy to clean up some html, but having a few > problems running it. > > The gem seems to be installed ok, > > But according to the rDoc I need to give the path of tidylib.so > > e.g. > Tidy.path = ''/usr/lib/tidylib.so'' > > However this file does not seem to exist, any suggestions on what I may > have missed? > (using ms windows) > > -- > Posted via http://www.ruby-forum.com/. > > > >-- http://www.jeremymcanally.com/ My free Ruby e-book: http://www.humblelittlerubybook.com/book/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
MArk wrote:> I am looking at using Tidy to clean up some html, but having a few > problems running it. > > The gem seems to be installed ok, > > But according to the rDoc I need to give the path of tidylib.soI have 300 years experience in C and so files on Linux, and I couldn''t get that working either. I only use Tidy in one place. When upgrading legacy HTML to RHTML, I Tidy it first, with the command line: tidy -asxhtml -i -m myFile.html That cleans up the style, so my assert_xml (generally) works safely on it in tests. Google for my street name and assert_tidy for a great wrapper, to help you test legacy RHTML files that are not clean enough for assert_xml. -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Mark, Did you ever get an answer to this? I''m running into the same issue on OS X. Dan Croak --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---