Displaying 1 result from an estimated 1 matches for "y_gener".
Did you mean:
degener
2010 May 12
8
Trouble developing Rails plugins/gems with generators
...ject with a gem statement in my
Gemfile with a :path option to point at it. But then I had to run $
rake install on each change in my gem to have Rails pick up on it. I
have now instead put my generators inside RAILS_ROOT/lib so they are
easier to test/develop.
lib/generators
- ability
ability_generator.rb
- clear
- config
When I run $ rails g
...
AuthAssist:
auth_assist:ability
auth_assist:clear
auth_assist:config
$ rails g auth_assist:ability
Could not find generator auth_assist:ability.
What am I doing wrong here? Must the generators be in a gem/plugin to
be picked up by Rails?
W...