Error during a redirection


I have a problem with Rails 0.14.3. I have an application which uses 2
databases : oracle and postgresql. I can connect to the both databases
and use them.

The application works correctly (I can reach the controllers, add
records in the databases without errors) but during or after a
redirection I receive an error. I check with breakpoint and the log, I
see in the log : “Redirected to http://localhost:3000/result” and just
after the error message (with no line of my code in the error message,
just files from rails as actionpack or webrick) :

TypeError in Invoice#index

can’t convert String into Integer

RAILS_ROOT : script/…/config/…

in ‘process_without_session_management_support’

Did somebody already meet this error or has an idea to solve it ?

Thanks in advance


Finally, I found my error.

In my code, I generate a csv and I used an array to store the name of
columns. The name of this array was ‘headers’. I saw that Rails uses
an array with the same name. I changed the name of my array and now it