def create_country
@country = Country.new(country_params)
begin
#сохраняем модель
@country.save
#это метод другой модели
CountryTvText.create_or_update_for_country @country.id, params[:country_tv_text]
flash[:notice] = "Страна добавлена"
rescue Exception => e
flash[:error] = e.message
end
redirect_to admin_panel_path
end
@country.save
CountryTvText.create_or_update_for_country @country.id, params[:country_tv_text]
rescue Exception => e
if @country.save
...
else
...
end