# Changing order of form fields

**URL:** <https://www.ruby-forum.com/t/changing-order-of-form-fields/83798>\
**Category:** Rails\
**Created:** [January 29, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/changing-order-of-form-fields/83798 "2007-01-29T20:41:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 29, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/changing-order-of-form-fields/83798/1 "2007-01-29T20:41:24Z")

</div>

hello. i’m just beginning to experiment with ruby on rails. is there  
any way to change the order that form fields appear in without  
redesigning the database schema? thanks

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 29, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/changing-order-of-form-fields/83798/2 "2007-01-29T20:46:32Z")

</div>

removed\_email\_address@domain.invalid wrote:

> hello. i’m just beginning to experiment with ruby on rails. is there  
> any way to change the order that form fields appear in without  
> redesigning the database schema? thanks

in the cmd run ruby script/generate scaffold table\_name

This will generate the form files allowing you to move them around as  
required

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 30, 2007, 6:21am UTC](https://www.ruby-forum.com/t/changing-order-of-form-fields/83798/3 "2007-01-30T06:21:58Z")

</div>

thank you. that helped tremendously
