Nobody is going to have any chance of helping unless you show the code
that is failing. First, however, debug in to find the bit that is
failing. If you have to post more than twenty lines of code you have
not done enough debugging.
If you don't know how to do this have a look at the Rails Guide on
debugging that will show you some techniques.
Note though that this is a Rails list, so if the problem is a
place to ask.