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 :controller => 'my_controller', :action => 'my_action'

Both things are done in your controllers.

On Oct 13, 3:19 am, Damjan Rems <[email protected]>
wrote:
> I would like to restart my rails application from within application. On
> demand. But I am stucked on first step. How to exit. exit 0 doesn't
> work.
>
> I am running webrick or mongrel.
>
> by
> TheR
> --
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to