= form_for @contractor, url: (@contractor.persisted? ? contractor_path(@contractor) : contractors_path), :html => { :class => "form-horizontal" } do |f|
Loading development environment (Rails 3.2.13)
1.9.3-p448 :001 > Status.transaction do
1.9.3-p448 :002 > statuses = [Status.new(name: 'test1'), Status.new(name: 'test2')]
1.9.3-p448 :003?> Status.import statuses
1.9.3-p448 :004?> end
(0.1ms) BEGIN
Status Exists (0.3ms) SELECT 1 AS one FROM `statuses` WHERE `statuses`.`name` = 'test1' LIMIT 1
Status Exists (0.2ms) SELECT 1 AS one FROM `statuses` WHERE `statuses`.`name` = 'test2' LIMIT 1
(0.3ms) SHOW VARIABLES like 'max_allowed_packet';
Class Create Many Without Validations Or Callbacks (0.2ms) INSERT INTO `statuses` (`id`,`name`,`validity`,`created_at`,`updated_at`,`info`) VALUES (NULL,'test1',1,'2014-08-28 10:22:32','2014-08-28 10:22:32',NULL),(NULL,'test2',1,'2014-08-28 10:22:32','2014-08-28 10:22:32',NULL) ON DUPLICATE KEY UPDATE `statuses`.`updated_at`=VALUES(`updated_at`)
(2.7ms) COMMIT
=> #<struct ActiveRecord::Import::Result failed_instances=[], num_inserts=1>
Поэтому я его не заметил через bundle show