# Creating a form\_for with field values?

**URL:** <https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181>\
**Category:** Rails\
**Created:** [March 6, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181 "2009-03-06T15:04:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [March 6, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181/1 "2009-03-06T15:04:57Z")

</div>

Hey guys,

I’m having a problem creating a form with field values.

I’m using form\_for and don’t really know how to access the field values.

I’ve got a table character\_attributes and character\_attribute\_types.  
character\_attribute\_types contains following data:  
id name  
X hiding  
X strength  
etc.

character\_attributes:  
id character\_attribute\_type\_id value character  
X 1 80 1  
X 2 46 1  
X 1 93 2  
X 2 62 2  
etc.

How would you create a form to set all characte\_attributes? I’m out of  
ideas atm.

---

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [March 10, 2009, 11:29am UTC](https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181/2 "2009-03-10T11:29:21Z")

</div>

Still having this problem, is there no proper way to do it?
