Html to plain text using webrat and nokogiri

Posted by anup.narkhede on November 20, 2009

Here is a snippet to parse a given http response into plain text. Basically it removes html tags, css blocks, script tags and yield visible text elements as seen in browser.

Gives:

Daily Blockers #1

Posted by anup.narkhede on November 06, 2009

I am starting a series of posts dealing with blockers at work. Here is the first one using gem bundler on Snow Leopard and mysql Mac OS X 10.5 (x86_64) version.

Command:

Error:

Solution:
Compile the bundled mysql gem with correct options. That is, locate your mysql_config and create a bundler_config.yml in application root dir.

Run: