I want users to register on my page. To register, they only have to
deliver an email and a password. Then a link with an activation token
will be sent to them, and after clicking the link the user sees a page
where he should fill in further details, means: a username.
My model looks like this:
class Member < ActiveRecord::Base
validates_presence_of :username, :if => !self.new_record?
Sadly this does not work: it tells me “undefined method `new_record?’
Where’s the problem? Shouldn’t any ActiveRecord class have a method
Thanks for help.