Rails: how to generate view/action to existing controller? -
when want add custome view existing controller need create custom_page.erb
, add def custom_page
in controller
, , add routes get ...
. repetative.
is there generate command
, can @ once? maybe rails generate customactiontomycontroller action_name
?
nope there no direct way this.
check out create new action existing controller
Comments
Post a Comment