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 question correctly).
@my_object.attribute = value if @my_object.save # do something here else # do something else end
You might want to also check out the 'update' and 'update_attributes' methods as well.