How to refresh a generic object instance

I created instances of Generic object and created a custom buttons to update and refresh. When I tried updating the generic object instance, it gets actually updated but not reflecting in the UI. I could its updated when I refresh the page.
Is there a way that I can refresh the page from the ruby code implementation, or reflect the changes in the UI.
Please advice.
Thanks in advance