Bake View利用可能なControllerが表示されます。既に作成しているMydatasの名前が表示されるはずです。ここで、Viewを作成するControllerの番号を入力します。ここでは「1」を入力します。
Path: …Viewのパス…
Possible Controllers based on your current database:
1. Mydatas
Enter a number from the list above,
type in the name of another controller, or 'q' to exit
[q] >
Would you like bake to build your views interactively?インタラクティブに作成するか尋ねてきます。既にControllerがあるので、別にインタラクティブに作業せず「n」で勝手に作成させればOKなのですが、今回は一応、どんな設定をするか説明するので「y」にしておきます。
Warning: Choosing no will overwrite Mydatas views if it exist. (y/n)
[n] >
Would you like to create some CRUD viewsCRUDのViewを作るか尋ねてきます。これはCreate/Read/Update/Deleteの略で、先ほどControllerのところで自動生成した基本機能のことと考えてください。「y」にすると、Controllerに用意したこれらの機能のためのViewを自動生成します。
(index, add, view, edit) for this controller?
NOTE: Before doing so, you'll need to create your controller
and model classes (including associated models). (y/n)
[y] >
Would you like to create the views for admin routing? (y/n)アドミン・ルーティングのViewを作るか尋ねてきます。今回は作っていないので「n」にします。
[n] >
※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
<< 前へ | 次へ >> |