Relationships between the CAF bits now in place

Rename the type field to kind, type is reserved
This commit is contained in:
2023-02-12 07:01:39 +00:00
parent 410a59fa04
commit d96050c4fb
9 changed files with 55 additions and 10 deletions

View File

@@ -6,9 +6,6 @@ class CompaniesController < ApplicationController
@companies = Company.all
end
# GET /companies/1 or /companies/1.json
def show
end
# GET /companies/new
def new
@@ -25,7 +22,7 @@ class CompaniesController < ApplicationController
respond_to do |format|
if @company.save
format.html { redirect_to company_url(@company), notice: "Company was successfully created." }
format.html { redirect_to root_url, notice: "Company was successfully created." }
format.json { render :show, status: :created, location: @company }
else
format.html { render :new, status: :unprocessable_entity }