search for: stateprovince

Displaying 2 results from an estimated 2 matches for "stateprovince".

2005 Dec 14
5
Rails namespace help requested
...subject "namespace pollution" and with the high traffic on this list, it''s kind of disappeared and I''m in need of a quick answer so i can move on. To recap quickly, can someone tell if Rails is somehow forcing all modules into a single namespace? I have a model class StateProvince and inside a webservice module in my lib/ directory I have a StateProvince as well but no matter what I do when running under Rails I get a superclass mismatch error. This doesn''t happen when I have standalone ruby code in similar situations. Thanks for any help Mike
2009 Jul 31
2
Undefined method updated? for <model object>
Hi, I have two model say- ZipCode < ActiveRecord::Base belongs_to :state_provinces end StateProvince < ActiveRecord::Base has_many :zip_codes end if I do @zip_code.update_atribute(:city, "My City") its giving Undefined method updated? for StateProvince if I remove belongs_to specifier in ZipCode class then it work fine. Any alternate solution?? Thanks -- Regards, Himanshu --~--~-...