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

Get Elements By Attributes

i will be short. As far as i know watir library provides two methods for getting html elements. Alm… Read more Get Elements By Attributes

How To Have Pdf Viewer In Ruby

How can I embeded pdf viewer in ruby on rail? Now I tried but it doesn't work. I used firebug… Read more How To Have Pdf Viewer In Ruby

How To "link_to" Full Path In Rails 4?

This is the code i have Solution 1: To get the full URL, use gig_url(@gig) instead of gig_path… Read more How To "link_to" Full Path In Rails 4?

How Can I Detect Errors In An Html Document Fragment With Ruby?

I'm collecting some HTML formatted content from a web form. Before saving this HTML content, I&… Read more How Can I Detect Errors In An Html Document Fragment With 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

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

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

Repairing Invalid Html With Nokogiri (removing Invalid Tags)

I'm trying to tidy some retrieved HTML using the tidy-ext gem. However, it fails when the HTML … Read more Repairing Invalid Html With Nokogiri (removing Invalid Tags)