views:

23

answers:

1

Is there a way to have rails raise an error if an attempt is made to mass-assign attributes that aren't allowed by attr_accessible?

This would be handy in development to remind me why my shiny new model isn't working, and also good to log in production in order to detect malicious activity.

I'm using rails 2.3.8 but will probably soon be migrating to 3.

A: 

Which rails version do you use?

Konsi
2.8.7 but probably migrating to 3 soon. i modified the question with this info.
John
Sorry but this version doesn't exist, the current version is 2.3.8
Konsi
haha, that's what I meant. (was thinking about ruby 1.8.7)
John