Fixes problems with saving records.

Changed params[:users] to params[:user] in controller: The form returned parameters under the hash key :user, not :users.

Added attr_accessible in model. Fields you are creating or updating need to be accessible.

Further issues: the create method called 'render' on both index and new. This will never run the the controller's index method, thus the @users instance var will never get set, thus throwing a nil squawk in your view. Changed to redirect_to 'index' instead.