Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ruby

Selecting Element From Dropdown Without Id Capybara

I am trying to use capybara (ruby bindings) to select an item from a dropdown that does not have an… Read more Selecting Element From Dropdown Without Id Capybara

Hpricot, Get All Text From Document

I have just started learning Ruby. Very cool language, liking it a lot. I am using the very handy … Read more Hpricot, Get All Text From Document

How To Sanitize Html String Except Image Url?

I'm trying to sanitize an html string, but I want to whitelist image urls. My code: ActionView:… Read more How To Sanitize Html String Except Image Url?

Run Ruby File From Html Form Submit

I have a Ruby program that reads a file and returns a certain output. I have to now create a web ap… Read more Run Ruby File From Html Form Submit

Html Agility Pack Or Html Screen Scraping Libraries For Java, Ruby, Python?

I found the HTML Agility Pack useful and easy to use for screen scraping web sites. What's the… Read more Html Agility Pack Or Html Screen Scraping Libraries For Java, Ruby, Python?

Rails Detect Changes To Files Programatically

I would like to write a method that programatically detects whether any of the files in my rails ap… Read more Rails Detect Changes To Files Programatically

How To Make Nokogiri Transparently Return Un/encoded Html Entities Untouched?

How can I use Nokogiri with having html entities (like German umlauts) untouched? I.e.: # this is f… Read more How To Make Nokogiri Transparently Return Un/encoded Html Entities Untouched?

Web Page Scraping Gems/tools Available In Ruby

I'm trying to scrape web pages in a Ruby script that I'm working on. The purpose of the pr… Read more Web Page Scraping Gems/tools Available In Ruby