Create a new action for existing controller

前端 未结 3 970
深忆病人
深忆病人 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:42

    Rails provide posibility of creating custom generators (but this is more advanced subject), which can be tailored for your needs.

    More info:

    http://guides.rubyonrails.org/generators.html

提交回复
热议问题