# Capturing textbox data

**URL:** <https://www.ruby-forum.com/t/capturing-textbox-data/131896>\
**Category:** Rails\
**Created:** [March 14, 2008, 6:58am UTC](https://www.ruby-forum.com/t/capturing-textbox-data/131896 "2008-03-14T06:58:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhadip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Post date:** [March 14, 2008, 6:58am UTC](https://www.ruby-forum.com/t/capturing-textbox-data/131896/1 "2008-03-14T06:58:21Z")

</div>

I have a textbox, where I will fill user\_id. And then on submission of  
that, the same page gets loaded passing the value of the textbox. And  
at  
last I need to fire some query to show relevant recordset in an HTML  
table format. Please help…  
very argent  
suppose i have table :users;  
attributes1):user\_id  
2):user\_name and id:primary\_key  
how i will write simple view and controller with respect to user\_id…
