[Rails] Re: Getting strange logouts after Rails3 migration

2011-04-07 Thread Erik Lindblad
I found out how to do it. Add this to the URL: ?authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>) Entering here if someone else needs it. Thanks for the help, Rails community rocks as usual. /Erik On 7 Apr, 23:31, Erik Lindblad wrote: > Thx, this really made my day, h

[Rails] Re: Getting strange logouts after Rails3 migration

2011-04-07 Thread Erik Lindblad
Hmm, I found out how to do it in jQuery (just use one $ instead of two) but I cannot get it to work. How should I include that in the js call to make it not log out? I have this in my controller: render :text => "window.location = '#{admin_start_list_path(@competition_class.id)}';" All help appre

[Rails] Re: Getting strange logouts after Rails3 migration

2011-04-07 Thread Erik Lindblad
Thx, this really made my day, having somewhere to start. Do you know how to do it from jquery? Regards Erik On 7 Apr, 22:59, Paul wrote: > 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. H