This project is archived and is in readonly mode.
rails 3.0.5 problem with csrf_meta_tag
-
Andrew White
- State changed from new to needs-more-info
- Importance changed from to Low
Are you using ajax requests? Is it possible that you're being affected by this change: http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ru...
You don't mention what you're using for authentication - if you're using devise then you need to update to at least 1.1.6 to take account of the change in 3.0.4:
https://github.com/plataformatec/devise/blob/v1.1/CHANGELOG.rdoc -
rdinca
Yes, I am using Ajax requests... and that change might have affected me, but I used rake rails:update command and now I am getting an error in rails.js.
Uncaught TypeError: Object # has no method 'on'
(anonymous function)rails.js:128 (anonymous function)And indeed, I do use devise for authentication, but 1.2rc2 ... so > 1.1.6.
I also add that I am using jquery, so the new error might be related to not having the proper rails.js ... but where do I get the one for jquery from, if there is one for 3.0.5 ?
-
rdinca
Oh .. I forgot I was using jquery-rails gem for that ... after a rails g jquery:install, things started working ok.
-
Andrew White
- State changed from needs-more-info to invalid