Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User.count(:username=>params[:username])
- class User
- include DataMapper::Resource
- property :id, Serial
- property :username, String, unique_index: true, required: true, length: 3..32
- property :password, String, required: true, length: 5..64
- property :email, String, unique_index: true, required: true, format: :email_address
- end
Add Comment
Please, Sign In to add comment