Hi all,
I want Rails to execute some code when starting the server, just at the
beginning.
I can add code to environment.rb; however, if this code makes reference
to the classes in app/models/, an exception appears, cause that classes
are not loaded before environment.rb is.
So, how and where can I set an initial code involving the classes in
app/models of my app?
Thanks.
2008/7/3 Damaris F. [email protected]:
app/models of my app?
Have you tried setting up some initializer at config/initializers ?
–
Raul M. - Freelance Web D.
http://raul.murciano.net
No, I didn’t try (didn’t know that). I’ve put some code now and it
works, lots of thanks 
Raul M. wrote:
2008/7/3 Damaris F. [email protected]:
app/models of my app?
Have you tried setting up some initializer at config/initializers ?
–
Raul M. - Freelance Web D.
http://raul.murciano.net