Conrad Taylor wrote: > On Wed, Oct 14, 2009 at 4:19 AM, Ralu rm > <rails-mailing-l...@andreas-s.net>wrote: > >> >> >> validates_presence_of :username >> :password_required? >> end >> end >> >> > 'attr_accessor :password' will generate two instance methods for class > User > similar > to the following: > > def password=(val)
thanks .....ill go for that -- 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-talk@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 -~----------~----~----~----~------~----~------~--~---