所以,我在active admin一個collection_action所使用的PandaStream api發回通知時處理視頻: collection_action :notify, :method => :post do
# some irrelevant to the question code
end
耙路線返回: notify_admin_videos POST
使用heroku run console然而,當和執行Panda::Profile.all我得到 irb(main):001:0> Panda::Profile.all
NoMethodError: undefined method `connection' for nil:NilClass
from /app/vendor/bundle/ruby/1.9.1/gems/panda-1