This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
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?
Thank you
David McCombs
Ranch Hand
Joined: Oct 17, 2006
Posts: 212
posted
0
Which book?
Do a search on Amazon for the book in question. The description should tell you.
2.0 is extremely new, I know The Rails Way covers 2.0, but perhaps not everything, since I believe it had to use edge rails.
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
Carl Hamrin
Greenhorn
Joined: Feb 07, 2008
Posts: 3
posted
0
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.
David McCombs
Ranch Hand
Joined: Oct 17, 2006
Posts: 212
posted
0
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.
David Berube
author
Greenhorn
Joined: Jun 18, 2007
Posts: 26
posted
0
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.
Take it easy, David Berube
Carl Hamrin
Greenhorn
Joined: Feb 07, 2008
Posts: 3
posted
0
Thank you for the response, I will go ahead and order the book. Hope that will not disqualify me for the drawing of a copy of the book, I can give it to my coleauges. Carl
David Berube
author
Greenhorn
Joined: Jun 18, 2007
Posts: 26
posted
0
I should note that a few of the examples use 2.0 style filenames, but, IIRC, almost no 2.0 style features - you should be able to convert by changing .html.erb to .rhtml.
Take it easy, David Berube
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.