18 lines
423 B
Ruby
18 lines
423 B
Ruby
|
class Admin::SitePanelController < OrbitAdminController
|
||
|
def index
|
||
|
@site_construct = SiteConstruct.new
|
||
|
end
|
||
|
|
||
|
def create
|
||
|
site_construct = SiteConstruct.new(site_construct_params)
|
||
|
site_construct.member_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
|