[Rails] Re: How to pass a variable from a model method to a controller

2009-04-27 Thread Tom Ha
Thanks! Always good to get some critical remarks & advice... -- 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 t

[Rails] Re: How to pass a variable from a model method to a controller

2009-04-26 Thread Chris Kottom
Not 100% sure I understand what you're trying to do, but here are a couple of items that strike me based on the code posted. First, your model method has two return statements. I don't know whether Ruby will throw up some kind of parsing error to that, but certainly the second of those will never