class Admin::SitePanelController < OrbitAdminController def initialize super @app_title = "client_management" end def index @site_construct = SiteConstruct.new end def create site_construct = SiteConstruct.new(site_construct_params) site_construct.user_id = current_user.id.to_s site_construct.save redirect_to admin_site_panel_path("msg" => "success") end private def site_construct_params params.require(:site_construct).permit! end end