All Questions
Tagged with jquery ruby-on-rails
11,796
questions
0
votes
1
answer
30
views
How to resolve Uncaught TypeError from Wave bundle.js when adding Wave.js to Rails 6 app
I am trying to add Wave JS to my Rails 6.1.7.8 app and I'm getting the following Uncaught Type error from Wave bundle.js:
bundle.js:866 Uncaught TypeError: this._canvasElement.getContext is not a ...
0
votes
0
answers
17
views
Problema with bootstrapDualListbox and ajax
I have the following:
html:
<div id="modal-form" class="modal fade" tabindex="-1" aria-hidden="true" style="z-index: 0;">
<div class="...
0
votes
0
answers
27
views
Rails UJS Remote Form Only Evaluates JS for 2XX Responses but Not 4XX Responses
Was there a change in how JQuery 3 and Jquery 1 handled remote form errors on Rails?
In the past, (Rails 6, Zurb Foundation, Jquery 1), the code below would work. A user would submit a form, they'd ...
0
votes
1
answer
60
views
Rails 7 with turbo
I have a rails 7 app and this is my package.json file:
{
"name": "app",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": ...
1
vote
0
answers
39
views
Rails: No route matches [POST] "/admin/users/bulk_actions/delete"
I have developed the sign,sign_up and log_out using devise.. Here i am trying to select one or multiple checkbox to do following actions:block,unblock,delete..After blocking a user he/she can't login ...
1
vote
0
answers
31
views
Terminating turbolinks:click event listener once a user has navigated away from a form
I have been tasked with creating an unsaved changes alert in a form partial for a Ruby on Rails app (full MVC architecture). While not new to Rails, I am new to Views, turbolinks, and jquery and have ...
0
votes
1
answer
225
views
Rails 7 with Turbo & jQuery not working / only working at first page load
I am using Rails 7 with the default turbo installation. I also want to use Materialize CSS and jQuery. The jQuery $(document).ready... functions work on first page load but not ever after.
This is a ...
0
votes
1
answer
115
views
rails 7.1.3 doesn't execute application.js
Hi everyone i've been using rails 7.1.3 and i faced some problem in javascript side where application.js does compile my jquery please if you can help me about that i will be greatfull iv'e been ...
0
votes
1
answer
111
views
how can i start a new rails 7 project with bootstrap5 and jquery support
I need to create a rails7.3.1 project with bootstrap latest.But, heard that Jquery will not support with latest bootstrap.
Also, I am planing to download the latest bootstrap files as part of my rails ...
0
votes
0
answers
72
views
Installing jquery in rails 7 breaks turbo
I have a rails 7 app with turbo-rails 1.1.1. In my app "turbo-method": :delete works as expected for my logout delete route.
After installing jquery 0.0.1 through bundle add and adding ...
0
votes
1
answer
28
views
Rails Cancancan Ajax custom action not working
I have a Rails App to which I added Devise and Cancancan to authentication and authorization.
Before that, the actio worked correctly, now in the console browser I see a redirect to the home.
I call ...
0
votes
0
answers
18
views
I've got a dropdown menu that I would like to restrict access to based on PW input, but it's not dropping down as desired
I've got it mostly working, but I am coming up short in my solution.
Here is my js:
function validateExportAccess(e) {
// Prevent the dropdown from opening by default
e.preventDefault(); //I ...
0
votes
2
answers
131
views
Rails Error: ActionController::UnknownFormat is missing a template for this request format and variant
I have a form in index page and I want that the action will be executed by Ajax, to display the result in the Index page.
This is my form in the index Page:
<%= form_with model: @shopping, :...
0
votes
1
answer
133
views
JQuery event listener error when using it with Rails 7
I have only added the JQuery using CDN, I placed the code in the head, in _head.html.erb which is this one :
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="...
0
votes
0
answers
39
views
Two popovers displaying for single target
I have a rails app using jquery and bootstrap for a table. The table header has 'visits' that should display popover with form to edit when clicked. This is working on initial page load, but after ...