# Table linking question

**URL:** <https://www.ruby-forum.com/t/table-linking-question/72461>\
**Category:** Ruby\
**Created:** [October 17, 2006, 11:46am UTC](https://www.ruby-forum.com/t/table-linking-question/72461 "2006-10-17T11:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vedran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/bb73d2/32.png) [@Vedran](https://www.ruby-forum.com/u/Vedran)\
**Post date:** [October 17, 2006, 11:46am UTC](https://www.ruby-forum.com/t/table-linking-question/72461/1 "2006-10-17T11:46:19Z")

</div>

Hello!!

I have two tables in the database: registrations and vehicles. Vehicles  
contains types of vehicles. I would like to put in the registrations  
view a drop down list (i think it is called select) that lists all the  
vehicle types (eg. SUV, Convertible…) from the vehicle table. Also  
after a user chooses a vehicle type, id of this vehicle should be  
written as a foreign key in the registrations table.

I would appreciate if someone would give me some guidelines how to do  
that.

Is it possible to access vehicle table from registrations view?

Thanks in advance!!
