Re: [Rails] Getting strange logouts after Rails3 migration

2011-04-07 Thread Paul
Yes, the problem is the authenticity token needs to be passed along with your data. There are various ways of doing this depending on your js library. Here's how to access the data you need using prototype: var csrf_param = $$('meta[name=csrf-param]')[0].content; var csrf_token = $$('meta[name=csr

[Rails] Getting strange logouts after Rails3 migration

2011-04-07 Thread Erik Lindblad
Hi I recently migrated a Rails 2 app to Rails 3 and switched to Devise in the process. It is working well apart from one strange phenomenon. When I do redirects using javascript the user is logged out. Has anyone experienced something similar? Kindest regards Erik Lindblad -- You received this