Rack is the basis for most major web frameworks in Ruby (like Ruby on Rails.) This video gives a basic overview on how it is used and what features make it a powerful component for Ruby Web Frameworks
This is the continuation of the Rails 3 Build a Blog series. This episode includes implementation of the Edit and Destroy methods on the Posts Controller. There are a lot of things left to cover on Rails 3, but this gets you the basics of the MVC framework and how to use Cucumber to build your application using BDD.
Quick Ruby Tip: The inject method is useful for aggregating data across a dataset. For example a summation could be done with inject (by aggregating each number into the sum.)
The second part of the tutorial for building a blog with Ruby on Rails version 3. We demonstrate how to set up some basic routes, manage the controller and views, and create a basic form for creating posts.
Every good project needs a good setup. In this episode, I set up a github repo, create a new rails application, hook in Cucumber and Rspec, write a Cucumber feature, and write the code to make it pass.
RSpec gives us many powerful tools to make our tests readable. Matchers allow us to provide custom predicates to our should statements that succinctly define the behavior of our code.
This is an introduction to Ruby metaprogramming where I cover two different ways to define a method. The idea actually started as a joke, but there are valuable lessons to be learned here.
Download 11.2 MB
Download (iphone & ipod) 4.9 MB
0 min
About Teach Me To Code » Screencasts (iPhone/iPod)
From the publisher's feed
Writing Code is the Easy Part
More shows like Teach Me To Code » Screencasts (iPhone/iPod)