2011-12-08 6 views

答えて

3

rails generate controller <controller name> <action1> <action2> <etc..> 
例えば

rails generate controller items new create edit update destroy index show 

このアプリ/コントローラ、new.html.erb、edit.html.erbアプリ内の他のアクションでitems_controller.rbを生成/ビューとテストテンプレート/

関連する問題