Mohamed Wael Khobalatte
2012-Oct-14 14:12 UTC
How to configure only one generator to skip stylesheets
Hey fellas, I am trying to configure the scaffold generator to skip stylesheets. I currently do the following: config.generators do |g| g.stylesheets false end Which works on all generators. How can I force it to selectively skip stylesheets depending on the generator, in my case the scaffold? I tried something like: config.generators do |g| g.stylesheets false if g == :scaffold end But it did not work. Any ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Mohamed Wael Khobalatte
2012-Oct-14 16:41 UTC
How to configure only one generator to skip stylesheets
Hey fellas, I am trying to configure the scaffold generator to skip stylesheets. I currently do the following: config.generators do |g| g.stylesheets false end Which works on all generators. How can I force it to selectively skip stylesheets depending on the generator, in my case the scaffold? I tried something like: config.generators do |g| g.stylesheets false if g == :scaffold end But it did not work. Any ideas? -- Wael -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.