This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ruby and the fly likes Version of Rails covered by the book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Version of Rails covered by the book" Watch "Version of Rails covered by the book" New topic
Author

Version of Rails covered by the book

Carl Hamrin
Greenhorn

Joined: Feb 07, 2008
Posts: 3
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
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
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
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
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
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
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://aspose.com/file-tools
 
subject: Version of Rails covered by the book
 
Similar Threads
Rails 2 and 3?
Rails plugin extension to rails app
Which is the hottest Java Technolgy?
Best Book Acording to yoUR Experience
Ruby Application Performance