From: J2M Date: 2006-09-02T08:14:02+09:00 Subject: How can I do this without eval... def load_default_attributes(model_name, options = {}) fixture = options[:fixture] || :default attributes = temp_attributes = model = {} instance_eval <<-FIN temp_attributes = #{model_name.to_s.pluralize}("#{fixture}") model = #{model_name.to_s.capitalize} FIN . . . end I know there must be a neater way to get hold of a class (or in this case a Rails model) and with the temp_attributes to get hold of a fixture, can anybody shed some metaprogramming light? Thanks.