mercredi 11 novembre 2015

Why doesn't "g controller" also create view file?

I've seen some Rails examples where generating a controller also creates the view file (not just the view folder).

In section 6.4 of Rails Guide, it shows an empty view folder and no view file. This is what my local installation is doing. I don't get any view files.

Is there some way to have Rails auto generate the view file when running rails g controller ...? Or, is it more likely the person created the view file manually and didn't show that part?

Aucun commentaire:

Enregistrer un commentaire