[Rails] Re: How to exit rails application from within

2009-10-15 Thread Gaspard Bucher
Marnen Laibow-Koser wrote: > Damjan Rems wrote: > [...] >> Sadly my server is Windows. I am working on an application for internal >> users which runs Word and Excel with ole automation a lot to provide >> output documents in pdf. > > There are better ways to build PDF files. If you can tell u

[Rails] Re: How to exit rails application from within

2009-10-15 Thread Marnen Laibow-Koser
Damjan Rems wrote: [...] > Sadly my server is Windows. I am working on an application for internal > users which runs Word and Excel with ole automation a lot to provide > output documents in pdf. There are better ways to build PDF files. If you can tell us a bit more about what you're doing,

[Rails] Re: How to exit rails application from within

2009-10-15 Thread Damjan Rems
chris.reis...@gmail.com wrote: > On Oct 13, 11:56�am, Damjan Rems > wrote: >> >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > If you are running inside mongrels with monit I am sure you could > really do this quite easily... > > controller: > def restart > `sudo monit restart -g mongrel

[Rails] Re: How to exit rails application from within

2009-10-14 Thread chris.reis...@gmail.com
On Oct 13, 11:56 am, Damjan Rems wrote: > pepe wrote: > > What do you mean by "restarting" the application? Do you mean end the > > session (if any) and (re)display the login/index/initial page? > > > If you need to end a session you can do it with this: > > > reset_session > > > To send a user

[Rails] Re: How to exit rails application from within

2009-10-14 Thread pepe
I don't think you'll be able to do that. I am assuming that you mean the user being able to kill the application. Remember that the user will probably be removed from the server that runs Rails and he/she won't have access to it. That access is only available through the browser. The only way tha

[Rails] Re: How to exit rails application from within

2009-10-14 Thread Damjan Rems
Is the kill from outside application the only solution? by TheR -- 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 em

[Rails] Re: How to exit rails application from within

2009-10-13 Thread Damjan Rems
pepe wrote: > What do you mean by "restarting" the application? Do you mean end the > session (if any) and (re)display the login/index/initial page? > > If you need to end a session you can do it with this: > > reset_session > > To send a user to the login/index/initial page you can just use a

[Rails] Re: How to exit rails application from within

2009-10-13 Thread pepe
What do you mean by "restarting" the application? Do you mean end the session (if any) and (re)display the login/index/initial page? If you need to end a session you can do it with this: reset_session To send a user to the login/index/initial page you can just use a redirect: redirect_to :cont