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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -