I know this is simple but I don't remember how to do this and wasn't able to find it on Google...
I rarely need a controller-specific helper file, so I would prefer that when I generate a Controller the helper (and helper spec) not be generated along with it.
I tried
#application.rb
config.generators do |g|
g.helpers false
end
...but that didn't work. How do you change that?
Rails Generate Resource You enter the name of the resource you want to create along with the table column names and types. You can even assign foreign keys in this line of code so that you save time. Generating a resource does everything generating a model does, but it also creates a resource in the routes.
You are close, according to http://blog.plataformatec.com.br/2011/02/understanding-the-latest-rails-benchmarks/
config.generators.helper = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With