search for: set_new_object_nam

Displaying 1 result from an estimated 1 matches for "set_new_object_nam".

Did you mean: set_new_object_name
2006 May 29
2
Creating a new virtual field
Hello, I have a problem with one of my Rails-Application, I have a table and on this there is object_name and a object_nr, so i want to create a combination of both in the model for a collection box. I''ve tried something like this: def set_new_object_name objects = find(:all).to_new_object_name end def self.to_new_object_name self.new_object_name = self.object_nr + " - " + self.object_name end I don''t know what to do know, can somebody help me? -- Posted via http://www.ruby-forum.com/.