Development environment bug? (config.load_paths doesn't take)

In development mode, these new directories are not picked up.

Hi, anyone has an answer for this one?
I just tried to add some new path same way and it doesn't seem to pick
it. Running in development mode yet.

Thanks.

You've posted a quote from *someplace*, likely this list, but without
any way to reference the original post. Can you give more details?

--Matt Jones

In development mode, these new directories are not picked up.

Hi, anyone has an answer for this one?

I just tried to add some new path same way and it doesn’t seem to pick

it. Running in development mode yet.

You’ve posted a quote from someplace, likely this list, but without

any way to reference the original post. Can you give more details?

–Matt Jones

Yes, I agree with Matt that’s it’s hard to following the discussion without knowing

the original issue.

-Conrad

:smiley: :smiley:

I can't deny you are right guys.
The quote is taken about 100 pixels above my text. It is part of the
original question of the post (almost the last line in it). I don't
really like quoting whole texts because it duplicates all the stuff...

If for some reason you can't see the original question I paste it here
again.

I'm not sure about your specific problem, but you could try replacing
your code with the following:

config.load_paths += Dir["#{RAILS_ROOT}/app/models/**/**"]

That loads all files in all subdirs in your models directory. It
works for me in all environments (in Rails 2.3, at least, haven't
tried it on earlier versions).

Casey

Just to be sure, have you restarted your app after changing
environment.rb ?

Fred