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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -