authenticated do
repo = Repository.find(:name => "learn_ibus", :user => "gutenye")
repo.description="hello"
repo.save
end
error
/usr/lib/ruby/gems/1.9.1/gems/octopi-0.4.4/lib/octopi/base.rb:47:in `save': undefined method `each' for nil:NilClass (NoMethodError)
from /home/guten/a/a.rb:13:in `block in <main>'
from /usr/lib/ruby/gems/1.9.1/gems/octopi-0.4.4/lib/octopi.rb:36:in `block in authenticated'
from /usr/lib/ruby/gems/1.9.1/gems/octopi-0.4.4/lib/octopi.rb:65:in `authenticated_with'
from /usr/lib/ruby/gems/1.9.1/gems/octopi-0.4.4/lib/octopi.rb:35:in `authenticated'
from /home/guten/a/a.rb:9:in `<main>'
code
error
@keys
is always nil