Project

General

Profile

Actions

Defect #10928

closed

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

Defect #10928: Documentation about generating a plugin is not up-to-date

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

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
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 1 (0 open — 1 closed)

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

Updated by Antoine Rodriguez over 14 years ago Actions #1

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

Updated by Etienne Massip over 14 years ago Actions #2

  • 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 14 years ago Actions #3

  • Status changed from New to Confirmed

Updated by Etienne Massip over 14 years ago Actions #4

  • Category changed from Core Plugins to Plugin API

Updated by Antoine Rodriguez over 14 years ago Actions #5

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 14 years ago Actions #6

  • 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 14 years ago Actions #7

  • 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: PDF Atom