Prev | Current Page 311 | Next

David Berube

"Practical Reporting with Ruby and Rails"

And note that you can simply change the
output_format variable to atom to cause the output to be in Atom instead of RSS form.
Since FeedTools can parse Atom instead of RSS seamlessly, the code will work with Atom
without any other changes.
The third variable, query_encoded, is set by the application to be a URL-encoded version
of the search string passed on the command line. The URI.encode function, provided
by Ruby??™s built-in URI library, translates characters that have special meaning in URLs,
such as the & character, into their encoded form.
nNote The difference between a Uniform Resource Identifier (URI) and a Uniform Resource Locator (URL)
is generally unimportant. Strictly speaking, a URI can also be a Uniform Resource Name (URN), which can
specify the identity of a thing, such as a book identified by its ISBN, without actually specifiying how to get it.
Next, you set the FeedTools.configurations[:feed_cache] variable to be equal to
"FeedTools::DatabaseFeedCache", which causes FeedTools to use its built-in
DatabaseFeedCache class.


Pages:
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
zakłady bukmacherskie Wczasy nad morzem oferty spa Spa Ciechocinek kolokacja rack