[Users] A problem wiht openseradmin0.3--Add New Account Preference

Lee Jacky jacky.lee888 at yahoo.com.cn
Sun Apr 29 04:44:06 CEST 2007


Hi,everyone,I am jacky.I use
openser1.1+openseradmin0.3. Now I am troubled with a
problem,and here is the detail:

After I install the openseradmin, I add attribute Tel
to the account_preferences_type,and then I click the
link:Add New Account Preference.
I fill the form like this:
username:admin
domain:voip.net
attribute:Tel
values:12456

Then I click the button:Create, and it redirect to a
error page,whose content is as follows:
ArgumentError in Voip account
preferencesController#create 
wrong number of arguments (1 for 2)
RAILS_ROOT:
/usr/local/openseradmin-0.3/script/../config/..
Application Trace | Framework Trace | Full Trace 
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1700:in
`attribute='
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1700:in
`send'
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1700:in
`attributes='
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1699:in
`each'
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1699:in
`attributes='
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/base.rb:1532:in
`initialize_without_callbacks'
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/callbacks.rb:225:in
`initialize'
#{RAILS_ROOT}/app/controllers/voip_account_preferences_controller.rb:27:in
`new'
#{RAILS_ROOT}/app/controllers/voip_account_preferences_controller.rb:27:in
`create'
Request
Parameters: 
{"voip_account_preference"=>{"username"=>"admin",
 "domain"=>"voip.net",
 "value"=>"12456",
 "attribute"=>"Tel"},
 "commit"=>"Create"}

I have considerde it for a long time ,but I still
can't solve it, so I hope you can help me to give me
some advice,

Any suggestion will be appreciated.
       
Best wishes,

                                                      
                             Yours,
                                                      
                             Jacky


      ___________________________________________________________ 
雅虎免费邮箱3.5G容量,20M附件! 
http://cn.mail.yahoo.com/




More information about the Users mailing list