Forum: Ruby on Rails creating a form_for with field values?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Heinz S. (Guest)
on 2009-03-06 16:04
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.
Heinz S. (Guest)
on 2009-03-10 12:29
Still having this problem, is there no proper way to do it?
This topic is locked and can not be replied to.