Project

General

Profile

redmine_plugin_model directory confusion

Added by Fauz Ghauri almost 15 years ago

Technical details at the foot of the page.

Bit of a newbie at rails.

While using the generator in netbeans 6.5, I can create a plugin without any hassle, but using the Rails Generator causes problems.

arguments:
polls question:string yes:integer no:integer

everything goes smoothly, with the exception of the location of the files. These are either dumped in redmine___skip (or ___force depending on the option to skip or overwrite).

I can get it working in the command line, but it feels a little odd switching back and forth.

Attempting to specify any further arguments

e.g. polls polls question:string...etc

will cause an error due to it treating the second argument as a pair (an argument is missing).

Any ideas on how to rectify this or which arguments could be used?

I know it's a small problem and I know I could just use the command line, but I'd rather get it working.
Can't seem to find a solution to it other than using the command line or moving the files by hand after.

AFG

=====================================================
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.1
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Edge Rails revision unknown
Application root /home/play/redmine-0.8.0
Environment development
Database adapter mysql
Database schema version 101
using webrick on 3000(default) =======================================================