# Newbie - One screen showing using three models

**URL:** <https://www.ruby-forum.com/t/newbie-one-screen-showing-using-three-models/122210>\
**Category:** Rails\
**Created:** [December 5, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/newbie-one-screen-showing-using-three-models/122210 "2007-12-05T16:30:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorgeoussoul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/6f9a4e/32.png) [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Post date:** [December 5, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/newbie-one-screen-showing-using-three-models/122210/1 "2007-12-05T16:30:41Z")

</div>

I have a screen for creating a Quote (new.rhtml in the views/quotes  
folder).

That screen is based on the Quotes model (which holds all the general  
information about the quote ).

I want to include tables of data from two other models in this form.  
Right now I’m rendering partials = views/quote\_details/  
\_quote\_details\_form.rhtml (which is a table for entering all the line  
items for the quote) and views/quote\_commitment\_details.rhtml (a table  
for entering multiple delivery dates per line item, if needed).

The problem is: I have three submit buttons on my screen and I’m not  
sure how to get rid of them.

Can anyone explain what to do or recommend another way of achieve  
this?

Thank you!

PS - Also, is there a way to limit the size of a \<% text\_field %\>?
