Hi all, I have run my controller methods from console, but now i learn about rails runner . i execute model method successful , but i wish to run my controller method using rails runner. Q Is this possible to run controller method from rails runner ? Thanks Regards Fahim Babar Patel -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GY0kA4TmcxwJ. For more options, visit https://groups.google.com/groups/opt_out.
Q Is this possible to run controller method from rails runner ? On Thursday, November 1, 2012 11:34:33 AM UTC+5:30, Fahim Patel wrote:> > > Hi all, > > I have run my controller methods from console, but now i learn about rails > runner . > > i execute model method successful , but i wish to run my controller method > using rails runner. > > Q Is this possible to run controller method from rails runner ? > > Thanks > > Regards > Fahim Babar Patel > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8wfZ7IqC_qUJ. For more options, visit https://groups.google.com/groups/opt_out.
On 1 November 2012 06:04, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi all, > > I have run my controller methods from console, but now i learn about rails > runner . > > i execute model method successful , but i wish to run my controller method > using rails runner. > > Q Is this possible to run controller method from rails runner ?I don''t believe this is possible, and don''t see any reason to want to do it. If you have methods there that you want to call from a runner the methods should probably either be in the models or in separate modules. Extract those methods from the controller and then you can call them either from the controller or from the runner. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Thanks for reply. Regards Fahim Babar Patel On Friday, November 2, 2012 1:37:44 PM UTC+5:30, Colin Law wrote:> > On 1 November 2012 06:04, Fahim Patel <paf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > > > Hi all, > > > > I have run my controller methods from console, but now i learn about > rails > > runner . > > > > i execute model method successful , but i wish to run my controller > method > > using rails runner. > > > > Q Is this possible to run controller method from rails runner ? > > I don''t believe this is possible, and don''t see any reason to want to > do it. If you have methods there that you want to call from a runner > the methods should probably either be in the models or in separate > modules. Extract those methods from the controller and then you can > call them either from the controller or from the runner. > > Colin >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ltYbDEJvtnoJ. For more options, visit https://groups.google.com/groups/opt_out.