I have the following Rails model:
class CreateFoo < ActiveRecord::Migration def self.up create_table :foo do |t| t.string :a t.string :b
I think using the attr_accessible method in the model class for Foo would achieve what you want, e.g.,:
class Foo < ActiveRecord::Base attr_accessible :a, :b, :c ... end
This would allow the setting/updating of only those attributes listed with attr_accessible.