# Syntax for text\_field

**URL:** <https://www.ruby-forum.com/t/syntax-for-text-field/124693>\
**Category:** Rails\
**Created:** [January 1, 2008, 6:44am UTC](https://www.ruby-forum.com/t/syntax-for-text-field/124693 "2008-01-01T06:44:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [January 1, 2008, 6:44am UTC](https://www.ruby-forum.com/t/syntax-for-text-field/124693/1 "2008-01-01T06:44:28Z")

</div>

Hi…  
I have two tables named cis and software\_cis which are polymorphically  
related.  
In the interface for editing the data in software\_cis table, i specified  
the text\_field component as  
Name  
\<%= text\_field ‘ci.content’, ‘name’ %\>

But it printed an error:  
`@ci.content’ is not allowed as an instance variable name

When i give \<%= @ci.content.name%\> the name field from software\_cis  
table is  
printed. So please tell me the correct syntax of text\_field. How can i  
refer the software\_cis table using model ci?

Regards  
Suneeta
