Bryan Crossland wrote in post #983396: >> So what does that mean? How do I fix it? > > It means we don't know until we see the error message you are getting. > Please post the error message.
I realize I may be crossing a line here by providing too much assistance, but I'm going to do it anyway just so you have an idea of how much unnecessary work your doing in your code. You're not taking advantage of either Ruby, nor the Rails framework, in your attempt. Compare what you have with... http://pastie.textmate.org/private/mupvplmtwc3ae5hgahfjwg Note: This was a very quick refactoring of the OP code so don't judge too harshly. I'm sure it could still be improved. I also didn't not take the additional re-factoring step to move the controller logic into the model layer where it probably should belong. P.S. Remember DON'T PLAGIARIZE! Especially not for school work. I offer this code as an example to illustrate how to take advantage of the features of the language you're working with. P.S.S. The answer to your question is there too, but I'll leave that as an exercise for you to discover. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

