Forum: Ruby on Rails How to configure only one generator to skip stylesheets

Posted by Mohamed Wael Khobalatte (Guest)
on 2012-10-14 16:48
(Received via mailing list)
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?
Posted by Mohamed Wael Khobalatte (Guest)
on 2012-10-14 18:41
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.