Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails is not defined javascript

I am able to access the Rails object by adding this to my pack:

import Rails from "@rails/ujs";
window.Rails = Rails;
 
PREVIOUS NEXT
Tagged: #rails #defined #javascript
ADD COMMENT
Topic
Name
6+4 =