Domanda

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?

È stato utile?

Soluzione

rails generate scaffold_controller Article

Altri suggerimenti

Use rails generate scaffold_controller Article with parameters, example:

rails g scaffold_controller Article title:string body:text

Create views with attributes in tables

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top