You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I am using this on a BrowserCMS platform, an open source Rails CMS project. It only happens on one CMS admin page. Here is the full dump, any help is appreciated.
Message
undefined method `api_list_action' for #Class:0x2374a90
I installled the Gem, added this to my environment.rb file:
config.gem 'bcurren-freshbooks.rb', :lib => 'freshbooks', :version => '3.0.23'
And added an initializer (freshbooks_startup.rb):
FreshBooks::Base.establish_connection('mysite.freshbooks.com', 'myapikey')
And I receive this error:
undefined method `api_list_action'
Note that I am using this on a BrowserCMS platform, an open source Rails CMS project. It only happens on one CMS admin page. Here is the full dump, any help is appreciated.
Message
undefined method `api_list_action' for #Class:0x2374a90
Stacktrace
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:1994:in
method_missing' /opt/local/lib/ruby/gems/1.8/gems/bcurren-freshbooks.rb-3.0.23/lib/freshbooks/base.rb:105:in
list'/opt/local/lib/ruby/gems/1.8/gems/browsercms-3.1.2/app/controllers/cms/content_block_controller.rb:130:in
load_blocks' /opt/local/lib/ruby/gems/1.8/gems/browsercms-3.1.2/app/controllers/cms/content_block_controller.rb:14:in
index'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in
send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in
perform_action_without_filters'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in
call_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in
ms'/opt/local/lib/ruby/1.8/benchmark.rb:308:in
realtime' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in
ms'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in
perform_action_without_flash'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in
perform_action' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in
send'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in
process_without_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in
process'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in
process' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in
call'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in
call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in
dispatch'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in
_call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in
build_middleware_stack'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in
call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in
call'/Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in
call' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
call'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in
call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/abstract_store.rb:128:in
call'/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in
call' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
cache'/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in
cache' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in
call'/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in
call'/Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
call' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
synchronize'/Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in
call'/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in
run' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in
call'/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in
call' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in
call'/Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in
each' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in
call'/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in
call' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in
call'/Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
service' /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in
service'/opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in
run' /opt/local/lib/ruby/1.8/webrick/server.rb:173:in
start_thread'/opt/local/lib/ruby/1.8/webrick/server.rb:162:in
start' /opt/local/lib/ruby/1.8/webrick/server.rb:162:in
start_thread'/opt/local/lib/ruby/1.8/webrick/server.rb:95:in
start' /opt/local/lib/ruby/1.8/webrick/server.rb:92:in
each'/opt/local/lib/ruby/1.8/webrick/server.rb:92:in
start' /opt/local/lib/ruby/1.8/webrick/server.rb:23:in
start'/opt/local/lib/ruby/1.8/webrick/server.rb:82:in
start' /Users/crh/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in
run'/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
gem_original_require' /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
require'script/server:3
The text was updated successfully, but these errors were encountered: