3 ms·
Agreed. You don't even need to add any gems or do any rails magic for this to work. In your controller: def edit @aws_credentials = current_user.aws_
by alinajaf 14y ago
Agreed. You don't even need to add any gems or do any rails magic for this to work. In your controller:
def edit
@aws_credentials = current_user.aws_credentials
end
def update
current_user.aws_credentials.update_attributes(
params[:aws_credentials].slice(:a, :b, :c)
)
end
- bhousel 14y agoDon't forget `destroy`.