• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Version of Rails covered by the book

 
Carl Hamrin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Carl Hamrin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic