문제

I would like to create a structure with rails g scaffold Article, but I have already created the table Articles and model Articles.

Is there any way to do that?

도움이 되었습니까?

해결책

rails generate scaffold_controller Article

다른 팁

Use rails generate scaffold_controller Article with parameters, example:

rails g scaffold_controller Article title:string body:text

Create views with attributes in tables

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top