I am trying to update a Rails 3 app to Rails 6 and I have problems with the now default webpacker since my Javascript functions are not accessible.  I get: ReferenceError: Can't find variable: functionName for all js function triggers.  What I di...
This a continuation of a related problem that @rossta fixed part of, but now the problem is moved so thought I'd start over.  No errors and the script is completing (verified by console.log outputs in the script). The body element shows up. This...
I am trying to do two things:   With Ajax render Edit form when a user clicks on Edit link/button Then after editing and they click on Update link/button, hide the form.   ...but unfortunately, it didn't behave that way. It perfectly renders the...
I know its simple but with update of rails 6. there is new syntax in rails 6 for manage javascript assets which is maintained by webpacker.  //application.js require("@rails/ujs") //.start() require("turbolinks").start() require("...
So I tried to organize my javascript and css packs as much as possible.   I have two layouts so far that separate the CSS and JS files that I need per layout accordingly.  Under javascript->packs->dashboard.js:  require("@rails/ujs").st...
I want to add the cropper functionality using the data modal, but I could not even select the file from the data modal. I tried using the yarn install command and webpacker but javascript is not adding to the corresponding page....
Hi i recently started working on Rails 6 with ruby 2.6.5. as the rails 6 has introduced the webpacks so i am trying to load my js files with the webpack. Although i have already required the jquery in the appliation.js still i am getting the below er...
This is related to this question.  I figured out that there is some JS file that is throwing an error that seems to be preventing Trix from executing properly (or at all).  This is what my app/javascript/packs/application.js looks...
I recently updated to rails 6.0.2 everything works fine but as i was creating a new project i fined that the javascript folder has been moved from assest pipeline to the app folder. Am using a theme to create a simple one page site everything works f...
I'm trying to get my turbolinks document ready to work.  My code is very simple  $( document ).on('turbolinks:load', function() {   console.log("It works on each visit!") })   This is using rails 6.  That code is in the middle of...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.