class <%= class_name %> < ActiveRecord::Base attr_accessible <%= model_attributes.map { |a| ":#{a.name}" }.join(", ") %> end