I had the same problem ... I fixed it without wrapping my model in a 
module.

http://blog.commonthread.com/2007/11/28/globalize-hijacked-my-country


Philipp Hofmann wrote:
> Ingo Weiss wrote:
>> Thanks for the reply! I got my app working by wrapping my Country model 
>> in a module like this MyApp::Country, and replacing all references to 
>> Country with MyApp::Country.
> 
> Hi,
> 
> I am experiencing the same problem and havn't figured out yet how to 
> point a *belongs_to* to the *moduled* model.
> 
> The obvious approach ...
> 
>  module MyApp
>    class Country < ActiveRecord::Base
>    end
>  end
> 
>  class Person
>    belongs_to :country, :class_name => 'MyApp::Country'
>  end
> 
> ... sadly doesn't work.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to