Create a new action for existing controller

前端 未结 3 979
深忆病人
深忆病人 2021-01-04 09:27

I know this is probably a newbie question, but is it possible to create a new action (method in controller & associated view) from the command line on an existing contro

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 09:50

    we can create manually the action in the controller and view but you should also add test statements that because should be good automated process, something like rails generate controller NAME [action action] option m m = merge

提交回复
热议问题