Hi, i have worked on one website using Ruby On Rails.i have installed acts_as_attachment for authenticate the user.after that i have installed login_engine plugin to try out some mail sending function.but i did not get that function worked.So i have just removed that login_engine plugin.and try out mail sending using acton_mailer gem.But while i am running that application to send mail for forgot password fuction. It shows the error as stack level too deep RAILS_ROOT: E:/Anovaproject/anova_tues Application Trace | Framework Trace | Full Trace C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/helpers.rb:92:in `inherited_without_helper'' C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/helpers.rb:92:in `inherited'' app/models/mymailertest.rb:1 app/controllers/account_controller.rb:261:in `forgot_password'' for this i have also reinstalled login_engine plugin.Cannot recover the error.Please any one can help me.How can i remove this error.any idea. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-l...@andreas- s.net> wrote:> Hi, > > i have worked on one website using Ruby On Rails.i have installed > acts_as_attachment for authenticate the user.after that i have installed > login_engine plugin to try out some mail sending function.but i did not > get that function worked.So i have just removed that login_engine > plugin.and try out mail sending using acton_mailer gem.But while i am > running that application to send mail for forgot password fuction. > > It shows the error as > > stack level too deep > > RAILS_ROOT: E:/Anovaproject/anova_tues > Application Trace | Framework Trace | Full Trace > > C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/helpers.rb:92:in > `inherited_without_helper'' > C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/helpers.rb:92:in > `inherited'' > app/models/mymailertest.rb:1 > app/controllers/account_controller.rb:261:in `forgot_password'' > > for this i have also reinstalled login_engine plugin.Cannot recover the > error.Please any one can help me.How can i remove this error.any idea. > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-l...@andreas--- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-l...@andreas-Hi alexey, Thanks for your reply.This is my app/controllers/account_controller.rb:261? Mymailertest.deliver_welcome(recipient,subject,message) app/models/mymailertest.rb def welcome(recipient, subject, message, sent_at = Time.now) @subject = subject @recipients = recipient @from = '''' @sent_on = sent_at @body["title"] = ''This is title'' @body["email"] = '''' @body["message"] = message @headers = {} end calling and called function. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---