Rails: do not create helpers

I know that it’s easy, but I don’t remember how to do it and could not find it on Google ...

I rarely need a helper file specific to the controller, so I would prefer that when creating the controller, an assistant (and an auxiliary specification) is not created with it.

I tried

#application.rb
config.generators do |g|
  g.helpers false
end

... but it did not work. How do you change that?

+5
source share
1 answer

You are close, according to http://blog.plataformatec.com.br/2011/02/understanding-the-latest-rails-benchmarks/

config.generators.helper = false
+17
source

All Articles