Rails 3 generators


I'm having some problems running a self made generator. When I want to
list the generators with: rails g, my generator shows up in the list.
But when I want to run it, I get Could not find generator error.

module MyGem
    module Core
        class InstallGenerator < Rails::Generators::Base
            source_root File.expand_path('../templates', __FILE__)

            def copy_initializer


            def delete_stylesheets
                remove_file "public/stylesheets/style.css"

            def copy_stylesheets
                copy_file "stylesheets/style.css",

Anyone who has an idea what might be wrong?

it looks like it has something to do with my namespacing. When I create
a second generator without namespaces, everything seems to work fine.

Does anyone know what to do in case of namespacing?