thanks for your reply i have added your code and i checked it. if i click back button after logout it is still going back to app but it is give me the error "
undefined method `username' for nil:NilClass" it shows it going back to app. On Thu, May 10, 2012 at 12:53 PM, Michael Pavling <[email protected]> wrote: > On 10 May 2012 07:54, honey ruby <[email protected]> wrote: > > after logging out of my site if i click back button it is going back > > how can i restrict this problem > > It's a browser caching issue, so you need to tell the browser not to cache. > > > http://stackoverflow.com/questions/711418/how-to-prevent-browser-page-caching-in-rails > > -- > 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. > > -- 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.

