Forum: Ruby on Rails! not saving and not throwing exception

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mike Emery (Guest)
on 2009-02-02 01:37
(Received via mailing list)
Hi all,

I've hit something migrating from rails 2.0.2 to 2.2.2 and I'm wondering
it's a bug or if there's something I'm not aware of coming into play.
abstracted the problem a little bit but it still reproduces with the
abstracted example.

I've got a model called multi_save.

class CreateMultiSaves < ActiveRecord::Migration
>     drop_table :multi_saves
>   end
> end

class MultiSave < ActiveRecord::Base
I've got a controller looking like:

class MultiSaveController < ApplicationController
> end

With this code in rails 2.0.2 the second call to save! sends an update
statement to the database.  In 2.2.2 the second call to save! issues no
to the database.  After the first call to save the id_dependant fields
properly as I would expect in both 2.0.2 and 2.2.2.

This topic is locked and can not be replied to.