site5/lumberg — Issue #3: lumberg gem does't working
Author: amul
Created: 2012-01-09 19:28:36+00:00
State: open

Hi Sir,

I am trying to use this lumberg gem inside my User model,

```ruby
def self.create_cpanel_acct
server = Lumberg::Whm::Server.new(
:host => 'connecttheory.com',
:user => 'connectt',
:hash => 'secretpassword'
)

result = server.account.create(
:username => 'newuser',
:domain => 'newuser.com',
:password => 'password'
)
result.inspect

if result[:success]
return result[:message]
else
return "not created"
end
end
```

and yet when I call the

User.create_cpanel_acct

I got the message "not created"

I have no Idea how to troubleshoot it.

Any help will be much appriciated.
Regards,
King Pangilinan