diff --git a/config/routes.rb b/config/routes.rb index 04381eb..8becefc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,8 +11,7 @@ # Plugin's routes # See: http://guides.rubyonrails.org/routing.html # - +get 'qbo', :to=> 'qbo#index' get 'qbo/authenticate', :to => 'qbo#authenticate' get 'qbo/oauth_callback', :to => 'qbo#oauth_callback' - get 'qop/qbo_sync', :to => 'qbo#sync' diff --git a/init.rb b/init.rb index 21f3ff8..de756f8 100644 --- a/init.rb +++ b/init.rb @@ -25,4 +25,7 @@ Redmine::Plugin.register :redmine_qbo do # We are playing in the sandbox Quickbooks.sandbox_mode = true + + # Register QBO top menu item + menu :top_menu, :qbo, { :controller => 'qbo', :action => 'index' }, :caption => 'Quickbooks' end