Displaying 3 results from an estimated 3 matches for "activation_key".
2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
...he corresponding validation of the associated pending user
and account
def setup
@new = User.new
# give it a valid email address
@new.email_address = pending_users(:ok_req).email_address
@new.password = @new.password_confirmation = ''doesntmatter''
@new.activation_key = ''activationkey''
@new.account_id = pending_users(:ok_req).account_id
end
def test_create_with_valid_pending_user
assert @new.save
end
end
SQL definitions for the tables for the classes involved (postgresql):
DROP TABLE generic_users CASCADE;
CREATE TABLE gen...
2009 Nov 22
2
WARNING: Can't mass-assign these protected attributes: active
...ve to have the attributes that I want to sent from the
form marked as attr_accessible. But now I''m not understanding the same error
when I try to update a single parameter from the record.
Let''s say I have this in my users controller:
#Get from the params hash the activation key
activation_key = params[:activation_key]
#Get from the params Hash the user id
user_id =params[:id]
@user = User.find(user_id)
@user.update_attributes!(:active=>1)
and in the model I don''t have the param active :marked as attr_accessible.
And the following warning messages is logged and the record is...
2020 Aug 25
2
C8 - Register with Red Hat
The subscription-manager dnf plugin is disabled by default as part of
our debranding in both CentOS Linux and CentOS Stream.
c8: https://git.centos.org/rpms/subscription-manager/blob/580aca8629536c64577e6a443b9349ecb629cc17/f/SPECS/subscription-manager.spec#_850
c8s: