Rails 创建一个 Controller

// To creates the web application
// Use the command rails applicationName: 
rails oschina



//Use the Ruby command ruby script/generate controller Hello:
cd oschina
ruby script/generate controller Hello

编程技巧