Table name problem

Whne I name my mysql table ‘equipment’ which is both singular and plural
I have problem when I try to create a auto complete text filled box.
Table name: equipment
Column name: description

I use the following code in my project:

auto_complete_for :equipment, :description

<%= text_field_with_auto_complete :equipment, :description %>

and I get this error:
undefined method `description’ for #Array:0x35541a8

This error only occues when i use this table name.

Did you use

set_table_name ‘equipment’

in the model equipment.rb ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs