O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
Answered by cjapes : Jan 18 2011 05:50 AM
Because it is a multidimensional array.
if you want just the first record try doing this: detail.first.programCode
or if you need to go through all programCode your query gives you you can do:
det... full answer >
Ruby on Rails took the software industry by storm a few years ago. However, unlike many technologies that looked great for a while and then slacked in popularity, Rails continues to attract developer...
Answered by Edd Dumbill : Feb 04 2010 10:03 AM
It's a simple procedure to programmatically fetch a web page from another site. Here's an example of this:
def fetch_url(url)
r = Net::HTTP.get_response( URI.parse( url ) )
if r.is_... full answer >