Relationships between the CAF bits now in place
Rename the type field to kind, type is reserved
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user