background preloader

Ruby on Rails

Facebook Twitter

Michael Hartl’s 15 Hours of Rails 3 Screencasts. By Peter Cooper / October 13, 2010 Have you seen Michael Hartl's RailsTutorial.org? It's a free online "book" that walks you through from start to finish with building either a Rails 2.3 or Rails 3.0 app (though a $39 PDF rendering is also available). After finishing the book, Michael set to work on some screencasts covering the same ground in video form and it's now released: the The Ruby on Rails Tutorial screencasts, clocking in at over 15 hours of content, are now live.

Michael's project is the latest in a line of self publishing efforts in the Ruby and Rails communities and it's gone down a storm on Hacker News. Michael did such a great job with the free content that you know the videos are going to be easy to follow and value packed. I got review access to all of the material a week ago and can confirm that, yes, these screencasts are awesome (as long as watching over 15 hours of screencasts is your cup of tea). Rails Routing from the Outside In. 1 The Purpose of the Rails Router The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views. 1.1 Connecting URLs to Code When your Rails application receives an incoming request for: it asks the router to match it to a controller action.

If the first matching route is: 1.2 Generating Paths and URLs from Code You can also generate paths and URLs. And your application contains this code in the controller: and this in the corresponding view: then the router will generate the path /patients/17. 2 Resource Routing: the Rails Default Resource routing allows you to quickly declare all of the common routes for a given resourceful controller. 2.1 Resources on the Web Browsers request pages from Rails by making a request for a URL using a specific HTTP method, such as GET, POST, PATCH, PUT and DELETE.

It asks the router to map it to a controller action. 2.2 CRUD, Verbs, and Actions 3.12 Redirection. Railscasts - Free Ruby on Rails Screencasts. Ruby on Rails guides. Ruby on Rails: Screencasts.

Top 12 Ruby on Rails Tutorials. A former student asked me a few days ago how I learned Ruby on Rails. The answer was that I simply read alot of great tutorials. So in the spirit of sharing, here are the 12 tutorials that I found most useful: Rolling with Ruby on Rails – Curtis Hibbs of ONLamp.com offers his first excellent introduction to Ruby on Rails. This is the article that got me really excited about RoR.2. Hey, Ruby on Rails Fans! UPDATE, JUNE 2009: Want more up-to-date tutorials on Ruby programming? Happy Rails developing and if you have any other tutorials that you’d like to share, please leave them in the comments!

Tagged as: ruby on rails, tutorial. YouTube - Ruby on Rails - Part 1: Hello World.