I''ve a Rails app that uses a "Tickets" table. I can show a list of rows in the table with the "list" URL and I can "Show" any one of the records in the result as expected. But when I try to "Edit" any one of the records I get this error in the browser: --------------------------------------------------------------- NoMethodError in Tickets#edit Showing /tickets/_form.rhtml where line #7 raised: undefined method `store'' for #<Ticket:0x23b36f4> Extracted source (around line #7): 4: 5: <!--[form:ticket]--> 6: <p><label for="ticket_store">Store</label><br/> 7: <%= text_field ''ticket'', ''store'' %></p> 8: 9: <p><label for="ticket_order_id">Order</label><br/> 10: <%= text_field ''ticket'', ''order_id'' %></p> -------------------------------------------------------------- One of the fields of the table is "store". So I figure there is a "store" method somewhere that should return the value of the store field for the "current" row. Also I figure that this is the way that the "Show" works (and it seems to work fine). How can I debug this? Where is the "store" method supposed to be? I understand that ActiveRecord builds the accessors for fields dynamically. It appears that this isn''t happening here? Someone suggested that "store" is a reserved word but I''ve commented out the line that writes the "store" and it also aborts on the "order_id" field and I assume that it would abort on any of the fields in the form. I''ve added an inspect of "ticket" just before the output begins and the output shows all the fields and values from the row just as you would expect. The database connection is ok since I can list and show records ok. The error only occurs when the edit form is called. Show and list work fine. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails