Hi Thomas, because of the *magic of Ruby* and Rails there is no such method in source :) The method is created at runtime and is looking for an attribute of name find_by_NAME in the table that is assoziated with the model.
Example: If a table users has an attribute name you can find a user by name with: User.find_by_name "Thomas" User.find_by_name_and_age "Thomas", 42 ... I think your problem is more about a wrong setup of Globalize. Look, if you find a table globalize_languages in your database. That one has the attribute rfc_3066. Am 29.08.2006 um 15:01 schrieb Thomas Schmid: > Hi Everyone, > > I just started to learn ruby and ruby on rails since I have to get a > codebase up and running someone else programmed. I installed > everything > fine, though when I try to launch WEBrick, I get the following error: > > => Booting WEBrick... > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/ > base.rb:1095:in > `method_missing': undefined method `find_by_rfc_3066' for > Globalize::Language:Class (NoMethodError) > from > ./script/../config/../vendor/plugins/globalize/lib/globalize/models/ > language.rb:37:in > `pick' > from ./script/../config/../config/environment.rb:58 > from > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > I figured out that the globalize plugin is the cause, thus I tried to > find the find_by_rfc_3066 method somewhere. But I couldn't find it. > Am I > missing some ruby packages? > > I use the latest globalize code base (revision 200 from subversion). > > Thank you for any help, > > Thomas > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion@rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > --- Thomas Baustert - Freiberuflicher Softwarecoach fon: +49(40)411 622 35 mobil: +49(173)23 911 43 fax: +49(40)411 622 36 thomas.baustert(at)b-simple.de _______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion