hiii niels thank for reply.
can u help me how to run logout action of controller user on window.location.href.. thanks rahul On Apr 29, 5:15 pm, Niels Meersschaert <nmeersscha...@mac.com> wrote: > Ruby files aren't evaluated when they are in the Public folder, their > contents are just returned to the user. You would need to have it call a > controller action to run code. > > On Apr 29, 2010, at 8:01 AM, Rahul Mehta wrote: > > > > > hii > > > i have my ror app website want to do destroy session on browser > > close , > > > please help how can i destroy.. > > > i have used javascript function on body unload > > > function bunload() > > { > > document.location.href="del.rb"; > > } > > </script> > > </head> > > <body onunload="bunload()"> > > > and i have putted the del.rb file in my public folder and in that i > > have putted the following code > > > session[:user] = nil > > > but its not destroying the session.. > > > please help.. > > > thanks > > > rahul > > > -- > > 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-t...@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.