Ruby on Rails generators with new gemified plugin? -
i'm attempting create new rails 3 plugin gem wraps around devise/devise_ldap_authenticatable reusable drop in internal ldap support.
i create new plugin gem with:
rails plugin new <gem_name> i add devise/devise_ldap_authenticatable gems .gemspec file , run bundle
in devise instructions says generate required files using generators:
rails generate devise:install rails generate devise model however, in directory plugin generated don't seem able run rails generate. gem plugin tutorials instruct create files manually. better off starting new rails project, following instructions in temp project, copying files on plugin manually? there i'm missing? can run generator script dummy instance? standard practice in use case?
in end, opted forgo wrapping devise_ldap_authenticatable due relative simplicity.
the answer go in future move files throwaway project.
Comments
Post a Comment