def create
      @svg_file = Cmtool::SvgFile.new(svg_file_params)

      respond_to do |format|
        if @svg_file.save
          format.html { redirect_to(cmtool.svg_files_path, :notice => I18n.t('cmtool.action.create.successful', :model => Cmtool::SvgFile.model_name.human)) }
          format.xml  { render :xml => @svg_file, :status => :created, :location => @svg_file }
        else
          format.html { render :action => "new" }
          format.xml  { render :xml => @svg_file.errors, :status => :unprocessable_entity }
        end
      end
    end
def create
      @svg_file = Cmtool::SvgFile.new(svg_file_params)

      respond_to do |format|
        if @svg_file.save
          format.html { redirect_to(cmtool.svg_files_path, :notice => I18n.t('cmtool.action.create.successful', :model => Cmtool::SvgFile.model_name.human)) }
          format.xml  { render :xml => @svg_file, :status => :created, :location => @svg_file }
        else
          format.html { render :action => "new" }
          format.xml  { render :xml => @svg_file.errors, :status => :unprocessable_entity }
        end
      end
    end
POST /svg_files
 POST /svg_files.xml