Thanks to all. :) Pepe
On Sep 11, 9:16 am, Ryan Bigg <[EMAIL PROTECTED]> wrote: > You could define the model like this, as a file called lib/ > shared_methods.rb > > module SharedMethods > def to_s > name > end > end > > and then just type include SharedMethods in any model you want to have > that to_s method. > > ----- > Ryan Bigg > Freelancer > Skype: radarlistener > MSN & Gtalk: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

