Project

General

Profile

Actions

Defect #4917

closed

Can't add new user using script/runner

Added by Ricardo Duarte about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-02-23
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I need add many user to Redmine using shell script and i'm trying insert using script/runner because User doesn't have API yet.

My fail test code is:

./script/runner "user = User.create(:id=> 29, :firstname => %[First], :lastname => %[Last], :mail => %[rduarte@thisisnotmyrealemail.com], :login => %[mylogin]); puts user.errors.full_messages" -e production

# Login can't be blank

I'm using:
- ruby 1.8.6 (2008-08-08 patchlevel 286) [i386-linux]
- Rails 2.3.5
- Redmine master from Github: last commit (f838904a7ead46c040e59c016275889f3d31ba56 Refactor: Extract Issue#bulk_edit from the IssuesController)

Actions

Also available in: Atom PDF