# Might be ORM problem

**URL:** <https://www.ruby-forum.com/t/might-be-orm-problem/197081>\
**Category:** Rails\
**Created:** [July 12, 2008, 11:20am UTC](https://www.ruby-forum.com/t/might-be-orm-problem/197081 "2008-07-12T11:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadeesh\_kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sadeesh\_kumar](https://www.ruby-forum.com/u/sadeesh_kumar)\
**Post date:** [July 12, 2008, 11:20am UTC](https://www.ruby-forum.com/t/might-be-orm-problem/197081/1 "2008-07-12T11:20:38Z")

</div>

Hi,  
I have a model user.rb, a controller userdata\_controller, methods  
in the controller and respective .rhtml files. I created a  
registration page. Saved into users table and it works fine. But  
sometimes its throwing error as

undefined method `city=’ for #

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
attribute\_methods.rb:251:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ base.rb:2361:in`send’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
base.rb:2361:in `attributes=' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ base.rb:2360:in`each’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
base.rb:2360:in `attributes=' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ base.rb:2130:in`initialize’  
app/controllers/matrimony\_controller.rb:124:in `new' app/controllers/matrimony_controller.rb:124:in`useraccount’  
-e:2:in `load’  
-e:2

It assumes that there is no field ‘city’ in table users.  
I confused a lot. It is never working until i restart my mongrel. I am  
not able to predict, when the problem rises.

Any idea? Help me…

Thanks,  
-Sadeesh kumar.
