I am a newbe to RoR and have been frustrated by all books and tutorials that uses methods, etc not carried over or have changed from older version to Rails version 2.0 Does the samples in the book run under version 2.x of Rails?
I was talking about the book that is being promoted here this week, "Practical Reporting with Ruby". I looked at Amazon but there is no detail info, nor is there any preview on chapters. I guess the book is just to new top have that.
The web site from the books publisher doesn't say much, but has sample code. There wasn't many rails app in the code, just ruby files that leverage the rails API. In other words, the ruby files were not controllers or models. So perhaps it doesn't matter that much.
One of the rails app had this line: RAILS_GEM_VERSION = '1.2.5' unless defined? RAILS_GEM_VERSION
That leads me to believe that the material is not as tied to the underlying rails version.
Hopefully the author will respond.
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
At least half of the examples don't even require Rails, although you can certainly use the techniques with Rails. Of the remaining examples, some are 2.0 and some are the older style. Note that almost none of the techniques are Rails 2.0 specific, save for one particularly RESTful example.