Podczas uruchamiania testów kontrolerów starszych jak ten:ActionController :: InvalidCrossOriginRequest w test kontrolera
get :edit, id: object.id, format: :js
moich testów rozpoczął braku w Rails 4.1 z następującym błędem:
ActionController::InvalidCrossOriginRequest: Security warning: an embedded <script> tag on another site requested protected JavaScript. If you know what you're doing, go ahead and disable forgery protection on this action to permit cross-origin JavaScript embedding.
Ta składnia została zmieniona na 'get edit_url (object), xhr: true' w Rails 5. –