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 #<User > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Sadeesh, a little hint from my side: It may be a better idea to post this on railsforum.com or the workingwithrails.com forums. This mailing list is more related to the development of the framework than providing help. Cheers, - Clemens On Jul 12, 11:45 am, sadeesh kumar <sadath...@gmail.com> wrote:> 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 #<User > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Clemens, thanks for your reply and suggestion. On Jul 12, 5:30 pm, Clemens <clem...@railway.at> wrote:> Sadeesh, > > a little hint from my side: It may be a better idea to post this on > railsforum.com or the workingwithrails.com forums. This mailing list > is more related to the development of the framework than providing > help. > > Cheers, > - Clemens > > On Jul 12, 11:45 am, sadeesh kumar <sadath...@gmail.com> wrote: > > > 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 #<User > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---