search for: cssscrapedstr

Displaying 1 result from an estimated 1 matches for "cssscrapedstr".

2011 Jan 03
8
Heroku, needs constant AppController updates?
...ay) end #of if return firstParse end #of def # remove whitespace and other characters such as newline def remove_whitespace(dirty_name) return dirty_name.split('' '').join(" ") end #find names in strings from the net def paramMatcher(modelString, param, cssScrapedString) case modelString when ''Venue'' venues = Venue.all i=0 venues.each do |v| if v.venueName.scan(cssScrapedString)[0] or cssScrapedString.scan(v.venueName)[0] return [v.venueName, v.city_location, v.longitude, v.latitude] end end # of .each e...