[Locomotive-users] Problem with :belongs_to relation

Samuel Linde samuel.linde at gmail.com
Tue Feb 27 06:22:58 GMT 2007


Hi again,

Just wanted to let you know that I think I traced the source of the  
problem. In application_controller.rb, I had an "include" statement  
that somehow appeared outside of the ApplicationController class,  
which when I got rid of it seemed to fix the problem.

I guess it didn't occur to me that I could perhaps look there. :-/

Well, I guess I've learned something, and my trips to the console  
certainly made me discover a valuable tool.

Again, thanks for your help!

/Samuel


26 feb 2007 kl. 23.01 skrev Stephen Waits:

> Samuel Linde wrote:
>> So, do you is it a problem with mongrel? I'm using the latest  
>> RMagick bundle from the Locomotive website. I've tried with the  
>> latest edge as well, nothing seems to help.
>> Isn't it odd that it works the first time I call the method, but  
>> all the subsequent returns an error?
>> Is there something else I could try in the db schema? Should I add  
>> foreign key restraints?
>
> Yes it is weird.
>
> I suggest you try using different web servers.  For example, try  
> launching script/server from the command line.  You can have it use  
> lighttpd or webrick.  Or, try running mongrel_rails from the  
> command line.
>
> Also, you might do a "gem update -y".
>
> --Steve
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users



More information about the Locomotive-users mailing list