Ruby on Rails automatic reload of libraries

Currently I'm busy developing a Rails Application. I'm busy developing some general classes that aren't part of a model/controller or view. I placing these classes in the 'lib' directory.
Things are fine ... well not quite ...

The problem while developing is the libraries aren't reloaded on each request. This is very frustrating when you are trying to write a library.

Some things I found (but don't seam to work):

Rest the application in the console. Well the application reset, but not the libraries.

$ ./script.console
Loading development environment...
>> Dispatcher.reset_application!

I assume the libraries directory is loaded in the ruby booting class loader. ( I'm still thinking Java ). So when Webrick starts these libs are loaded.
The models and controllers etc. are loaded by the rails class loader.

Somehow I need to reload the library in the rails class loader space.... Doesn somebody have a solution!?
Perhaps I should find another directory...

I will keep you informed if I find a solutions.

---

1 august 2007: Well found a solution for the problem, I even wonder if it really was a problem..... (shame on me)
If I place the class "MyOwnClass" in the file "lib/my_own_class.rb" without including the source file. (This isn't required, because Rails automatically includes it) it seems to be refreshed every time I do a request...

Nice.. !

Researching Mantis Anonymous Bug Reporting

I've decided to use Mantis Bugtracker as the bugtracking tool for libhttpd. This is the tool I already was using before placing it on sourceforge. And I've got pretty good experience with it.

There's one problem, I would like to make others post bug reports directly into Mantis. The problem is that Mantis doesn't have a Captcha plugin for submitting bug reports.

For the time being It's not allowed to sent bugreports directly without registering.

You can find the bugtracker (currently empty) at http://bugs.gamecreatures.com/

Issue tracker Sourceforge isn’t very Nice

I don't like the issue tracker that's available at sourceforge. Some problems it has:

  • Very short Title. Much to short for a descent description.
  • Deleting categories isn't possible.
  • Very limiting in descriptions etc.
  • I'm missing the features mantis has..

I need to setup a bugtracking system for libhttpd myself

Java HTTP Library Released @ SourceForge

Since today the Java HTTP Library has been released to sourceforge. (Finally).
You can find the project page at: http://sourceforge.net/projects/java-libhttpd

This means the new subversion repositry is accessible by everbody. The URL For the SVN respositry is:

https://java-libhttpd.svn.sourceforge.net/svnroot/java-libhttpd/trunk

I've changes some things

  • Removed my E-mail address. (hopefully from every source file).
  • Changed the License type to Apache 2.0 (Needed to change every source file)

There are some things that still needs to be done:

  • Fixup a good website
  • Move some private bugtracker items to the sourceforge bugtracker.

Pheeew. Much more work then I suspected...
Now to bed. It's midnight....

Ajax Table Paginated Sortable and Searchable

Currently I'm working on an application for a client. It's build in Ruby on Rails. After using ActiveScaffold for the startup I've decided to remove this plugin and write my own Ajax table.

I found a nice article / sample about this subject: http://dev.nozav.org/rails_ajax_table.html

The article is nice for a single table, but I need multiple tables, so I need to wrap some stuff in helpers. But that shouldn't be a problem.