简体   繁体   English

“ Practical Rails”版本要求

[英]“Practical Rails” version requirements

I am getting ready to get started in "Practical Rails: Social Networking Sites" and I was hoping that someone could clue me in on what versions of Ruby and Rails I need to get it all started. 我已经准备好开始使用“ Practical Rails:社交网站”,我希望有人可以帮助我了解我需要什么版本的Ruby和Rails来开始一切。 I am currently running 1.9.2 and 3.0.9 respectively. 我目前正在分别运行1.9.2和3.0.9。 By skimming through the book I am going to assume that the code in there is a little outdated. 通过浏览本书,我将假定其中的代码有些过时了。 So, does anyone know what versions of Ruby and Rails would work for that book? 那么,有谁知道该书适合哪种版本的Ruby和Rails?

Thank you in advance! 先感谢您! (PS I am a beginner on this website and in programming so please be easy on me!) (附言:我是该网站和编程的初学者,所以请对我方便!)

PPS I did purchase this book from the bookstore so I would appreciate it if I didn't hear stuff like, "Get a different book." PPS我确实是从书店购买的,因此,如果我听不到“换另一本书”之类的东西,我将不胜感激。 I want to use this one. 我想用这个。 Thank you! 谢谢! =) =)

I find it hard to believe the book doesn't mention somewhere which version of Rails was used. 我很难相信这本书没有提到使用哪个版本的Rails。 However, since the book was published in mid 2007, it's probably using 1.2 and maybe has some early features of 2.0. 但是,由于该书于2007年中出版,因此它可能使用1.2,并且可能具有2.0的某些早期功能。

You're not doing yourself a favor by starting with this book. 从这本书开始,您并不是在帮自己一个忙。 If you already had Rails experience and knew the differences between Rails 1.x, 2.x, and 3.x, then you'd probably get some value out of it. 如果您已经有Rails的经验,并且知道Rails 1.x,2.x和3.x之间的区别,那么您可能会从中获得一些价值。 I'd recommend starting with a book that covers 3.0 at a minimum, and then revisiting this book when you've got the basics down. 我建议从一本至少涵盖3.0的书开始,然后在您掌握了基础知识之后再读一本书。 If people are telling you to try a different book, it's only because the changes to Rails over the last 4-5 years have been significant enough that it will be a challenge. 如果人们告诉您尝试另一本书,那仅仅是因为过去4-5年对Rails的更改已经足够重大,这将是一个挑战。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM