Execute class with script/generate


There is to do in order to execute a my own class with script/generate?
I have created a class to generate a css files in the directory plugins


class CssGenerator < Rails::Generator::Based
def manifest
record do |m|
m.directory “public/stylesheet/top”
m.file “mytemplates/top.css”, “public/stylesheet/top/top.css”


that I must modify in my application to be able to use my class
CssGenerator with script/generate CssGenerator ???

excuse to my bad english and thanks for the help.
a greeting

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs