redirect_to '/login'does not save information such as render 'new'.
I'm not quite happy with this solution, but this is what I did:
resource :session, :only => [:create, :new, :destroy],
:path_names => { :new => 'login' }
Which gives you the following routes:
- session POST / session (.: format) {: action => "create" ,: controller => "sessions"}
- new_session GET / session / login (.: format) {: action => "new" ,: controller => "sessions"}
- DELETE / session (.: Format) {: action => "destroy" ,: controller => "sessions"}