Extjs with Rails- Problem in adding button dynamically on Panel
I am using ExtJS 3.2.1 with Rails 3.x.
I have a Panel on which I want to add ExtJS Buttons "dynamically" depending upon the number of records in the db. I tried googling but no luck. 

Any Suggestions?

Thanks in advance !
Extjs with Rails- Problem in adding button dynamically on Panel
===

I am using ExtJS 3.2.1 with Rails 3.x.
I have a Panel on which I want to add ExtJS Buttons "dynamically" depending upon the number of records in the db. I tried googling but no luck. 

Any Suggestions?

Thanks in advance !