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
on 2012-11-01 07:05
on 2012-11-02 09:08
On 1 November 2012 06:04, Fahim Patel <pafahim@gmail.com> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.