[Rails] Re: autoloading LoadError: Expected known_ip.rb to define KnownIp
I am sorry, i have cheated.
I tried with a new application, and in the described above case there
were no errors, i only had to add
set_fixture_class :known_ips => KnownIP
AFTER `fixtures :all` in `test_helper.rb`
In my application, however, the class actually is `Admin::KnownIP`, and
adding
set_fixture_class 'admin/known_ips' => Admin::KnownIP
does not help for some reason...
I'll keep trying.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home