progress today, clicking and fixing

This commit is contained in:
2026-02-04 15:09:46 -05:00
parent a72559666d
commit f0c561311f
14 changed files with 52 additions and 25 deletions
@@ -6,10 +6,11 @@ module Admin
end
def new
@svg_element = SvgElement.new
end
def create
@svg_element = SvgElement.new(svg_element_params)
if @svg_element.save
redirect_to [:edit, :admin, @svg_element]
else
@@ -18,6 +19,7 @@ module Admin
end
def update
@svg_element = SvgElement.find(params[:id])
if @svg_element.update_attributes svg_element_params
redirect_to [:edit, :admin, @svg_element]
else
@@ -26,11 +28,11 @@ module Admin
end
def show
@svg_element = SvgElement.find(params[:id])
end
def edit
@svg_element = SvgElement.find(params[:id])
end
private