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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -