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

Haml .each Function For Variables

I have around 30+ variables that contain an array with multiple strings inside of it. 1 variable =… Read more Haml .each Function For Variables

How To Serve Static Html Pages With Rails?

I have Rails application with documentation which is static html pages in the /public folder. The t… Read more How To Serve Static Html Pages With Rails?

How Do I Select Either A Th Or A Td From A Table Row?

I'm using Nokogiri with Rails 5. How do I select either a 'th' element or a 'td… Read more How Do I Select Either A Th Or A Td From A Table Row?

Page Views Counter Sinatra?

How to implement a page views counter in Sinatra and Ruby? I have tried the @@ variables but they … Read more Page Views Counter Sinatra?

What Is The Best Way To Parse A Web Page In Ruby?

I have been looking at XML and HTML libraries on rubyforge for a simple way to pull data out of a w… Read more What Is The Best Way To Parse A Web Page In 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