i''m trying to use BackgroundRb but when I do worker MiddleMan(:tag_sending_worker) in my controller i get "undefined method `MiddleMan'' for #<SchedulesController:0x25be080> , but when i do it from the console it works fine. Of course i tried restarting my mongrel and restarting the backgroundrb process but no luck , any ideas o this ? It iis a weird problem , I don''t know why it does the lookup in my Controller class only :( Thanks a lot in advance -- 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 -~----------~----~----~----~------~----~------~--~---
huard.elise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Jan-08 15:55 UTC
Re: Dumb problem using BackgroundRb
hi, the invocation in your controller should go Middleman.worker(:my_worker).my_method(:arguments) see documentation: http://backgroundrb.rubyforge.org/ btw I''m not using backgroundrb anymore, i got fed up with unclear error messages and relative instability. I''m now using workling- starling for any new projects. Elise On Jan 8, 3:22 pm, Federico Brubacher <rails-mailing-l...@andreas- s.net> wrote:> i''m trying to use BackgroundRb but when I do worker > MiddleMan(:tag_sending_worker) in my controller i get "undefined method > `MiddleMan'' for #<SchedulesController:0x25be080> , but when i do it from > the console it works fine. > > Of course i tried restarting my mongrel and restarting the backgroundrb > process but no luck , any ideas o this ? It iis a weird problem , I > don''t know why it does the lookup in my Controller class only :( > > Thanks a lot in advance > -- > 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Jan 8, 2009 at 7:52 PM, Federico Brubacher <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > i''m trying to use BackgroundRb but when I do worker > MiddleMan(:tag_sending_worker) in my controller i get "undefined method > `MiddleMan'' for #<SchedulesController:0x25be080> , but when i do it from > the console it works fine. > > Of course i tried restarting my mongrel and restarting the backgroundrb > process but no luck , any ideas o this ? It iis a weird problem , I > don''t know why it does the lookup in my Controller class only :( >Okay. Looks like, you have config.plugins in your RAILS_ROOT/environments/production.rb and hence backgroundrb isn''t getting loaded. If not that, are you using config.plugins in environment.rb?? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
huard.elise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> hi, > > the invocation in your controller should go > Middleman.worker(:my_worker).my_method(:arguments) > see documentation: http://backgroundrb.rubyforge.org/ > > btw I''m not using backgroundrb anymore, i got fed up with unclear > error messages and relative instability. I''m now using workling- > starling for any new projects. > > Elise > > On Jan 8, 3:22�pm, Federico Brubacher <rails-mailing-l...@andreas-Thanks Elise that worked ! -- 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 -~----------~----~----~----~------~----~------~--~---