I am trying to lift an application with Rails 4 and I had this little problem with Entity keys, forms and names. Here are a few details:
rails g scaffold user_type name:string
rails g scaffold user name:string pass:string user_type:references
As you can see, there is a simple 1: n relationship between user_typeand a user. It generates the right scaffold in this case. Here is an image of the formed form,

But what I want as a result of the generator is the following form,

So, the first change I want from rails g scaffoldis to generate at least an e 1: n relationship with the selected input. And also I'm looking for a solution that includes Models with labelor something like that. I need scaffold commandone that finally generates this.

, Entity user_type name .
, , , , .
, CRUD, 150 . ?