removed register site controller

This commit is contained in:
Saurabh Bhatia 2014-02-14 17:18:47 +08:00
parent 5d6319dfcc
commit ce5b35239f
4 changed files with 5 additions and 17 deletions

View File

@ -1,10 +0,0 @@
class Admin::RegisterSiteController < OrbitBackendController
def index
end
def register_site
site = Site.first
site.register_site
redirect_to admin_module_store_path
end
end

View File

@ -147,6 +147,11 @@ class Admin::SitesController < OrbitBackendController
render :text => "success"
end
def register_site
@site.register_site
redirect_to admin_module_store_path
end
protected
def update_design(design)

View File

@ -1 +0,0 @@
<%= link_to "Register", register_site_admin_register_site_index_path, :class => "btn btn-primary"%>

View File

@ -272,12 +272,6 @@ Orbit::Application.routes.draw do
match 'template_store' => 'template_store#index'
match 'template_store/download_theme' => "template_store#download_theme"
match 'template_store/template/:id' => 'template_store#show', :as => :template_store_template
resources :register_site, only: [:index] do
collection do
post 'register_site'
end
end
# match 'template_store/cool_method' => "template_store#cool_method"
end