I'm not entirely clear what you are trying to achieve but why not set
the attribute directly then save? You don't need to add it to the
params hash, but just to the object itself (if I understand your
@my_object.attribute = value
# do something here
# do something else
You might want to also check out the 'update' and 'update_attributes'
methods as well.