
Ruby, Rails and JavaScript Tutorial Catalog ▶ We’ve been acquired by Pluralsight! ▶ Upgrade your account to Pluralsight ▶ More details… Filter by tag: Ruby on Rails · Ruby · Javascript · Play by Play · Unix · RSpec · Deployment · Pdf · Design · Cocoa · iPhone · Node · Databases · Productivity · Git Play by Play: Katrina Owen Build Your Career: Michael Lopp (Rands in Repose) Meet Elixir RSpec 2: with Rails 4 and Ruby 2 (Part 3 of 3) Gallery CSS Troubleshooting, The Developer's #1 Skill Play by Play: Refactoring with Ben Orenstein Play by Play: Aaron Patterson and Corey Haines Fire Up Ember.js RSpec 2: Tools (Part 2 of 3) Scaling Up with Eric Lindvall RSpec 2: The Basics (Part 1 of 3) Meet Chef (Part 2 of 2) Meet Chef (Part 1 of 2) Play by Play: Neven Mrgan Play by Play: Tim Caswell (Node.js) Play by Play: Yehuda Katz (Part 2: Ember.js) Play by Play: Yehuda Katz (Part 1: Rails 3) Play by Play: Kyle Neath Full Stack Node.js Part 2 Full Stack Node.js Part 1 Play by Play: Jim Weirich Play by Play: Aaron Patterson HTML5: Browser Caching Advanced Git Meet Node.js
Learn Web Development with the Ruby on Rails Tutorial Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Michael Hartl is the author of the Ruby on Rails Tutorial, the leading introduction to web development with Ruby on Rails. Copyright and license Welcome to the Ruby on Rails Tutorial.
Ruby Primer - Introduction to Objects We will begin our journey with objects. In Ruby, just like in real life, our world is filled with objects. Everything is an object - integers, characters, text, arrays - everything. To make things happen using Ruby, one always puts oneself in the place of an object and then has conversations with other objects, telling them to do stuff. Roleplaying as an object in your program is an integral part of object-oriented programming. To know which object you are at the moment, one may use the keyword self. Try it for yourself: As you can see, if you don't specify which object you are, you automatically play the role of the main object that Ruby provides us by default. We'll delve into how one can play the role of different objects and why this is useful a little further down the line.
Learnable