This project is archived and is in readonly mode.

#5835 ✓stale
Astrid Kurbin

MassAssignment problem with ActiveRecord 2.3.9

Reported by Astrid Kurbin | October 18th, 2010 @ 03:15 PM

i have a problem with ActiveRecord 2.3.9, the massassignment doesn't
work. New Database entry is nil for all parameters.
If i use ActiveRecord 2.3.5 everything works fine.
Anybody an idea if there is a bug?

#class Tag < ActiveRecord::Base;end


Comments and changes to this ticket

  • Jeff Kreeftmeijer

    Jeff Kreeftmeijer October 18th, 2010 @ 09:01 PM

    • State changed from “new” to “needs-more-info”
    • Tag set to 2.3.9, activerecord
    • Importance changed from “” to “Low”

    Can you please give us a code sample we can run that demonstrates the problem you're having? I'll put this one on need-more-info for now. :)

  • Astrid Kurbin

    Astrid Kurbin October 19th, 2010 @ 12:49 PM

    The model:
    class Tag < ActiveRecord::Base

    :adapter => 'sqlite3', :database => 'test.sqlite3.db' )

    Tag.create(:description => "test", :typpe => "some")

    if using ActiveRecord 2.3.9
    Tag.find(:all) gives me the entry with :description => nil and typpe => nil

    If using ActiveRecord 2.3.5
    Tag.find(:all) gives me the entry with :description => "test" and typpe => "some"

    so you only need the Model and the create method to try out the behavior

    I hope this helps

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:29 PM

    • State changed from “needs-more-info” to “open”
    • Tag changed from 2.3.9, activerecord to 239, activerecord

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:29 PM

    • State changed from “open” to “stale”

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=""></a>