This draft includes previously unpublished versions of Chapter 10, "User microposts", and Chapter 11, "Following users". The original announcement is here:
This is a full draft, but it's not yet complete. In particular, I'm considering replacing Blueprint CSS with Bootstrap for the final version. Please let me know what you think.
I agree with everyone else on using bootstrap. Besides becoming the norm there are a couple of steps using available gems that could make a beginner have an easier time setting it up. It could be a difference maker with someone's time.
Also, huge fan of this tutorial. It got me started with Rails a year ago. Best resource I used to learn rails.
Hello, I also started rails by reading your tutorial. I have a question, this post http://stackoverflow.com/a/5612941 suggests that the way to model a friendship is to duplicate rows in a transaction and it cites a book you wrote.
Is this still the way to go? I like the idea of duplicating rows because it simplifies the associations a lot, but I've been warned against it. Is that the way you would do it?
I've been learning Rails from your tutorial (just finished Chapter 11), but realised a few days ago that I've been using the 3.0 version. It'd be great to see an appendix on "Transitioning to 3.2 for first edition readers" (probably like the one you've got for 3.0 -> 3.1, but I haven't got to reading that yet.)
And while I'm here, there is a bug in the 3.0 edition in section 11.3.4, listing 11.39. The link_to "delete" needs to reference 'feed_item', not 'micropost'. That took me a good half an hour to sort out - mainly because I assumed it was my fault, not yours! :-)
Thanks for all your efforts here; this is a fantastic resource.
Oops, you're right. That's actually a new bug, and has now been fixed.
As far as the transition goes, that's a great candidate for a blog post, but it's not as good a fit for a book. Plus, experience shows that starting from scratch often takes less time in the end.
Not sure if you are aware of this...for the first edition of your tutorial, webrat is required for many of the tests (I tested on ubuntu/windows), but inclusion of webrat will actually break some of the new tests (like those using have_selector) in the second edition. You might want to add a warning to those who have followed the first edition and are trying to incorporate the additions in the second edition.
Is there a change log or something of the sort? I am actually half way through chapter 4 and looking back I see some differences between what I've already done and what is presented on the site, just want to make sure I'm either not missing things or what I've already written is ok to continue with.
This tutorial was my first exposure to Ruby and Rails. It is amazingly comprehensive and comprehendible for newbies. I'm so glad to see it being regularly updated.
Rails Tutorial was my first step in developing. It was extremely helpful and I used both the book and screen casts which helped me alot. For a complete newb it was a bit overwhelming but I was still able to follow along and eventually get the sample app live. Now I am trying to learn more pure ruby and going back through the tutorial and learning even more. Thanks again Michael this has been by far the best resource I have used so far.
So far really liking the tutorial. Just one thing, as a rails newbie, could you expand a little more on the deploying part of section 1, specifically giving an example of deploying NOT using heroku.
It's just I want to be deploying to just a generic server running rails and I want to know how the process is different. I know you have to set the ENV to production but at what stage of the process does this happen etc...
I second that. Capistrano does have a very comprehensive run down of how that all works but for the beginner I can see them getting lost with those. Most Rails tutorials I've seen either tell you to deploy to Heroku or if they don't they don't cover deployment to your own server so much, it usually feels like a quick skim.
[+] [-] mhartl|14 years ago|reply
http://news.railstutorial.org/a-full-draft-of-the-ruby-on-ra...
This is a full draft, but it's not yet complete. In particular, I'm considering replacing Blueprint CSS with Bootstrap for the final version. Please let me know what you think.
[+] [-] ryan_f|14 years ago|reply
Also, huge fan of this tutorial. It got me started with Rails a year ago. Best resource I used to learn rails.
[+] [-] lukeholder|14 years ago|reply
[+] [-] plf|14 years ago|reply
Is this still the way to go? I like the idea of duplicating rows because it simplifies the associations a lot, but I've been warned against it. Is that the way you would do it?
Thanks.
[+] [-] wickchuck|14 years ago|reply
[+] [-] entropie|14 years ago|reply
[+] [-] Alind|14 years ago|reply
[+] [-] Schwolop|14 years ago|reply
And while I'm here, there is a bug in the 3.0 edition in section 11.3.4, listing 11.39. The link_to "delete" needs to reference 'feed_item', not 'micropost'. That took me a good half an hour to sort out - mainly because I assumed it was my fault, not yours! :-)
Thanks for all your efforts here; this is a fantastic resource.
[+] [-] mhartl|14 years ago|reply
As far as the transition goes, that's a great candidate for a blog post, but it's not as good a fit for a book. Plus, experience shows that starting from scratch often takes less time in the end.
[+] [-] prusswan|14 years ago|reply
[+] [-] mhartl|14 years ago|reply
[+] [-] sotu|14 years ago|reply
[+] [-] mkellyclare|14 years ago|reply
[+] [-] ronilan|14 years ago|reply
[+] [-] johnnycakes|14 years ago|reply
Thanks Michael for you contribution!
[+] [-] blanecordes|14 years ago|reply
[+] [-] experiment0|14 years ago|reply
It's just I want to be deploying to just a generic server running rails and I want to know how the process is different. I know you have to set the ENV to production but at what stage of the process does this happen etc...
[+] [-] sheff|14 years ago|reply
[+] [-] billpatrianakos|14 years ago|reply
[+] [-] czzarr|14 years ago|reply
I actually think bootstrap is a good idea but might result in a distraction since it is a big framework.
[+] [-] karl_nerd|14 years ago|reply
[+] [-] unknown|14 years ago|reply
[deleted]
[+] [-] tkoh|14 years ago|reply
[+] [-] daemonza|14 years ago|reply
[+] [-] adamjtrainer|14 years ago|reply
Great job with this tutorial!
[+] [-] MarlonPro|14 years ago|reply
[+] [-] julnepht|14 years ago|reply
[+] [-] purephase|14 years ago|reply
[+] [-] nhebb|14 years ago|reply
[+] [-] mhartl|14 years ago|reply
[+] [-] raphaelcaixeta|14 years ago|reply
[+] [-] KVFinn|14 years ago|reply
[+] [-] duk|14 years ago|reply