Displaying 1 result from an estimated 1 matches for "sotwareci".
Did you mean:
softwareci
2008 Jan 02
6
problem when editing record in polymorphic relation
...as follows
================================================================
def edit
@ci=Ci.find(1)
end
My Problem
===========
In the edit.rhtml file, I am trying to populate the value of ''version'',
an attribute in the software_ci table which is represented by the
content_type, SotwareCi. The sample code is given below.
<%= text_field ci.content, "version", "size" => 20 %>
I am assuming ''ci.content'' in the above code will represent the model
and ''version'' will represent the attribute of that model.
When executed th...