automation and view updates

This commit is contained in:
Jason Jordan
2026-04-17 15:35:10 -04:00
parent 247a075c9c
commit 7ab1143db8
30 changed files with 124704 additions and 602 deletions
@@ -87,6 +87,17 @@ module IdCard
end
def update_active_status
@setup.active = !@setup.active
if @setup.save
puts "sucess"
redirect_to employer_path(@setup.employer.slug), notice: 'ID Card Active Status successfully updated.'
else
puts "fail"
render :show, status: :unprocessable_entity
end
end
def destroy
# @resource = Resource.find(params[:id])
# @resource.destroy