From: SW Engineer Date: 2011-01-07T03:11:21+09:00 Subject: Block variable - How is it read in English? Following the "Ruby on Rails Tutorial", and under section "6.1.1 Database migrations" http://railstutorial.org/chapters/modeling-and-viewing-users-one#top There is the following migration: class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :name t.string :email . . . How do we read this line in English? create_table :users do |t| Why should we write the following line with "t."? t.string :name I know that block variables are used to pass parameters, but what is it trying to tell us here? So the "do |t|" part is actually the part that is confusing me. Any clarifications would be appreciated. Thanks. -- Posted via http://www.ruby-forum.com/.