controllerの作成
controllerの作成
$ rails g controller {コントローラ名}
コントローラ名は複数形が望ましいとのこと( exp members )
app/controllers/{コントローラ名}_controller.rb
app/views/{コントローラ名}/
が作成される。
controllerの作成
$ rails g controller {コントローラ名}
コントローラ名は複数形が望ましいとのこと( exp members )
app/controllers/{コントローラ名}_controller.rb
app/views/{コントローラ名}/
が作成される。