It's also common to see this when accessor methods are misused. Suppose
the following:
class Test
def initialize(new_value = "Foo")
@my_value = new_value
end
def my_value
@my_value
end
def my_value=(new_value)
self.my_value = new_value
end
end
test = Test.new
test.my_value = "Bar"
puts test.my_value
In this contrived example notice how the setter method is calling itself
in an attempt to set my_value. Hence an infinite loop in the setter and
a "stack level too deep" is the side-effect.
Of course the proper syntax for the setter should be:
def my_value=(new_value)
@my_value = new_value
end
Maybe your case if different, but I've seen this happen so I thought I'd
mention it before you spend too much time on something silly like this.
alexey.Creopolis wrote:
> This error can happen on endless loop or never ending recursive
> function,
> CAn u show app/models/mymailertest.rb content and method on app/
> controllers/account_controller.rb:261 ?
>
>
> On Oct 29, 12:02�pm, Babysudha Subbiah <[EMAIL PROTECTED]
--
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
-~----------~----~----~----~------~----~------~--~---