config/routes.rb in e9_crm-0.1.19 vs config/routes.rb in e9_crm-0.1.20
- old
+ new
@@ -1,10 +1,11 @@
Rails.application.routes.draw do
crm_path = 'admin/crm'
- get '/autocomplete/contacts' => E9Crm::Rack::ContactAutoCompleter
+ get '/autocomplete/contacts' => E9Crm::Rack::ContactAutoCompleter
get '/autocomplete/companies' => E9Crm::Rack::CompanyAutoCompleter
+ get '/users/email_test.json' => E9Crm::Rack::EmailAvailabilityChecker
scope :module => :e9_crm do
resources :offers, :as => :public_offer, :only => :show do
resources :leads, :as => :deals, :only => [:new, :create], :path => ''
end
@@ -39,10 +40,10 @@
collection do
post :bulk_create
end
end
- resources :campaigns, :only => [:index, :destroy] do
+ resources :campaigns, :only => [:index, :destroy, :new] do
# page_views currently not routed, but near working
#resources :page_views, :path => 'activity', :only => :index
end
scope :path => :campaigns do
#get '/activity', :to => redirect("/#{crm_path}/campaigns/all/activity")