This project is archived and is in readonly mode.

#4298 ✓wontfix
geroldboehler

Marking Activerecord object as dirty

Reported by geroldboehler | March 30th, 2010 @ 12:31 PM

Hi all,

I just tried the following:

c = Content.find(1)
c.text => "foo"
c.text.sub!("bar")
c.save!

I think people would assume that the record gets saved to the database - but it doesn't.
Is this behavior correct?

Gerold

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages