Project

General

Profile

Actions

Defect #10928

closed

Documentation about generating a plugin is not up-to-date

Added by Antoine Rodriguez over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

Related to Redmine - Defect #11024: redmine_plugin_model generator does not create the migrationClosed

Actions
Actions #1

Updated by Antoine Rodriguez over 12 years ago

I run this command from the redmine folder "/opt/redmine"

Actions #2

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.

Actions #3

Updated by Etienne Massip over 12 years ago

  • Status changed from New to Confirmed
Actions #4

Updated by Etienne Massip over 12 years ago

  • Category changed from Core Plugins to Plugin API
Actions #5

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,

Actions #6

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!

Actions #7

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.

Actions

Also available in: Atom PDF