Philip Hallstrom wrote: >> end >> >> I'm getting a "stack level too deep error". Any suggestions on how to >> fix and the correct approach to this. > > You're calling status from within status so it's recursing forever. > > Replace that last status with read_attribute(:status) after perhaps > reloading the object to ensure you've got the latest.
Yeah that is was. Simple calling 'read_attribute(:status)' instead of 'status' did the trick. thanks -- 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 -~----------~----~----~----~------~----~------~--~---

