Create a scaffold by skipping a model

I have rails 2.3 and ruby ​​1.8.7

I want to create only a controller and view the files for it. Is there any command in rails2.3 that will help me with this. I know this can be done in rails 3, but is there any way to do this in rails 2.3

+4
source share
1 answer

Just say script/generate controller [controller_name] [action_name_1] [action_name_2] ... in the Rails directory to create a controller with the specified actions and corresponding view files.

+6
source

Source: https://habr.com/ru/post/1336271/


All Articles