ruby on rails - Skip jbuilder files when I generate a scaffold? -


when scaffold don't want generate these files:

invoke    jbuilder create      app/views/tests/index.json.jbuilder create      app/views/tests/show.json.jbuilder 

but how? in application.rb have this:

config.generators |g|   g.assets            false   g.helper            false   g.test_framework    nil end 

use

config.generators.jbuilder = false

or

config.generators |g|   g.assets            false   g.helper            false   g.test_framework    nil   g.jbuilder          false end 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -