Defect #10928
closedDocumentation about generating a plugin is not up-to-date
0%
Description
when we type :
ruby script/generate redmine_plugin MyPlugin
It shows :
ruby: No such file or directory -- script/generate (LoadError)
So it's impossible to generate a new plugin.
Environment:
Redmine version 2.0.0.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.3
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed
Related issues
Updated by Antoine Rodriguez over 12 years ago
I run this command from the redmine folder "/opt/redmine"
Updated by Etienne Massip over 12 years ago
- Target version set to 2.1.0
Indeed, mentionned in tags source:/tags/2.0.0/lib/generators/redmine_plugin_model/USAGE but script/generate
has been removed with other Rails 2 scripts.
Updated by Etienne Massip over 12 years ago
- Status changed from New to Confirmed
Updated by Etienne Massip over 12 years ago
- Category changed from Core Plugins to Plugin API
Updated by Antoine Rodriguez over 12 years ago
Thanks to your document I managed to build a plugin by typing this :
./script/rails generate redmine_plugin plugin_name
The document include an error because it says ./script/generate instead of ./script/rails generate
Best regards,
Updated by Etienne Massip over 12 years ago
- Subject changed from Generating a plugin fails under redmine 2.0 to Documentation about generating a plugin is not up-to-date
- Category changed from Plugin API to Documentation
Thanks for the report!
Updated by Jean-Philippe Lang over 12 years ago
- Status changed from Confirmed to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
The plugin tutorial has been updated for 2.x.