# Ajax updating form

**URL:** <https://www.ruby-forum.com/t/ajax-updating-form/118822>\
**Category:** Rails\
**Created:** [October 31, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/ajax-updating-form/118822 "2007-10-31T12:04:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisfinne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f1d935/32.png) [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Post date:** [October 31, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/ajax-updating-form/118822/1 "2007-10-31T12:04:10Z")

</div>

can anyone help or point me in the right direction?:

I have a number of asset\_types.

When I create a new asset (which belongs\_to an asset\_type), I want the  
form to be specific to an asset\_type (e.g. labels on the form will be  
different).

How is best to solve this?

1. either -\> when creating a new asset, have a select box for the user  
to select the asset\_type and then have the form auto-update (with ajax  
ideally).

2. or is it possible to have separate routes for each asset\_type (using  
separate controllers?)

Chris
