|
|
|
@ -10,7 +10,7 @@ class WebFooterCompaniesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def new
|
|
|
|
|
@company = WebFooterCompany.new
|
|
|
|
|
@company ||= WebFooterCompany.new
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
@ -20,7 +20,11 @@ class WebFooterCompaniesController < ApplicationController
|
|
|
|
|
redirect_to web_footer_companies_url
|
|
|
|
|
else
|
|
|
|
|
flash[:error] = "#{l :web_footer_company_create_fail}: #{@company.errors.full_messages[0]}"
|
|
|
|
|
render :action => 'new'
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html { render :action => 'new'}
|
|
|
|
|
format.api { render_validation_errors(@company) }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|