following on from this... I'm trying to do this now..
def self.find_nil_and_save(name) resorts = Resort.find(:all, :conditions => {name => nil}) resorts.each do |resort| puts resort.name + " #{name} is empty. Enter a value..." new_value = gets.chomp puts resort.name + " Thanks, you entered #{new_value}" resort.update_attributes(name => new_value) # puts resort.name + " updated.. #{name} is now #{resort.{name}.to_s}" puts resort.name + " updated.." end end that works but I can't figure this line out # puts resort.name + " updated.. #{name} is now #{resort.{name}.to_s}" How do i simply output the updated attribute value on that line, I appreciate what I have there is wrong! bb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.