This project is archived and is in readonly mode.
javascript TypeError with rails3 project (rails.js, line 2)
Reported by audiores | March 16th, 2010 @ 10:29 PM | in 3.0.2
Uncaught TypeError: Cannot call method 'readAttribute' of undefined - rails.js:2
this is what safari and google chrome (javascript console) tell
me.
i am not sure if the problem exists also in the git version, the
project has been created with the last rails3 beta.
Comments and changes to this ticket
-
audiores March 16th, 2010 @ 10:30 PM
i forgot to tell that this is a fresh rails project where this error occurs.
-
Denis Odorcic March 17th, 2010 @ 12:37 AM
- Tag changed from error, javascript, rails.js, rails3 to csrf, error, javascript, rails.js, rails3
Error happens when <%= csrf_meta_tag %> is not included into your application layout. See #4084 ticket for more info as its a duplicate issue.
-
audiores March 19th, 2010 @ 07:02 PM
even when including the csrf_meta_tag
the following error occurs:Uncaught TypeError: Cannot call method 'readAttribute' of undefined
:5000/javascripts/rails.js?1268779689:2 -
Denis Odorcic March 19th, 2010 @ 07:33 PM
Yea, I looked into this more afterwards and its related to #4136 which I've submitted a patch for. csrf_meta_tag never returns the authenticity tokens.
-
Denis Odorcic March 19th, 2010 @ 10:13 PM
- Tag changed from csrf, error, javascript, rails.js, rails3 to csrf, error, javascript, rails.js, rails3, resolved
Resolved in master by http://github.com/rails/rails/commit/7f53dca1a13e21ec4400a765f637b7...
-
Yehuda Katz (wycats) March 27th, 2010 @ 08:26 AM
- State changed from new to resolved
-
Yehuda Katz (wycats) March 27th, 2010 @ 08:27 AM
- Tag changed from csrf, error, javascript, rails.js, rails3, resolved to csrf, error, javascript, rails.js, rails3
- Milestone cleared.
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 4201 javascript helpers not working in rails3! this is maybe related to #4199 since there seem to be gen...
- 4136 allow_forgery_protection is false even in development environment by default I've added a patch for this (and light rework to remove s...