# Get data from a table

**URL:** <https://www.ruby-forum.com/t/get-data-from-a-table/152271>\
**Category:** Rails\
**Created:** [November 1, 2008, 3:35am UTC](https://www.ruby-forum.com/t/get-data-from-a-table/152271 "2008-11-01T03:35:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishara\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Post date:** [November 1, 2008, 3:35am UTC](https://www.ruby-forum.com/t/get-data-from-a-table/152271/1 "2008-11-01T03:35:54Z")

</div>

can anyone tell me,how can retrieve data from a specific modelwhen i  
pass an  
id.  
as an example there’s table called agent\_detail,it includes  
id, name, address  
so i wanna get name and address from that table which will be the of  
row  
id=10,  
i just only want to pass id number and then i can be get the data

---

<div class="post-metadata">

**Author:** ![Ishara\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Post date:** [November 1, 2008, 6:12am UTC](https://www.ruby-forum.com/t/get-data-from-a-table/152271/2 "2008-11-01T06:12:01Z")

</div>

SpecificModelName.find(10)  
that’s it

On Nov 1, 7:34 am, “Ishara G.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
