update users info via ajax is working, yay. Next thing is we need to move the datatables into an ajax call and so that we can refresh the table upon any changes occuring

This commit is contained in:
Ken Johnson
2013-05-20 16:31:59 -04:00
parent 168c19bdc5
commit 5fd72fcd6f
7 changed files with 129 additions and 98 deletions
+4 -3
View File
@@ -1,9 +1,10 @@
class User < ActiveRecord::Base
attr_accessible :email, :password, :user_id, :admin, :password_confirmation, :first_name, :last_name
validates_confirmation_of :password, :password_confirmation
validates_confirmation_of :password, :password_confirmation, :on => :create
validates :password, :presence => true,
:confirmation => true,
:length => {:within => 6..40}
:confirmation => true,
:length => {:within => 6..40},
:on => :create
validates_presence_of :email
validates_uniqueness_of :email
validates_format_of :email, :with => /.+@.+\..+/i