On 24 November 2015 at 17:32, tom <
toma...@gmail.com> wrote:
> yes thats the console.
> the file name is called: g_l_entry_vat_entrylink.rb
I notice that (for rails 4.2.5 at least) that
'GLEntryVatEntrylink'.tableize gives "gl_entry_vat_entrylinks". I
wonder whether that means the file should be called
gl_entry_vat_entrylink.rb. If that doesn't work then in
config/application.rb try
config.autoload_paths += Dir[Rails.root.join('app', 'models', '{**/}')]
which I think will force it to load all model files whether the names
match the classes or not. Just make sure you do not have any
non-model files there (backups from editor or whatever).
Colin
>
https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMf%2BS_zcMm5yQgurLWy_GgVUCevguUvhOFHotMvtJty_kA%40mail.gmail.com.