All Questions
5,476 questions
0
votes
0
answers
36
views
Draggable Items Disappear or Misalign When Dropped in FullCalendar with StimulusJS in Rails
I am integrating FullCalendar with StimulusJS in a Ruby on Rails application to build an interactive scheduling tool. Most of it works as expected, but I am encountering an issue with draggable events ...
0
votes
1
answer
87
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
48
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
1
answer
212
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
44
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
53
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
209
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
2
answers
326
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
152
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="...
1
vote
2
answers
265
views
js requests to Rails 6.0 app render html template instead of js
I'm in the process of migrating a legacy Rails 5.0 app to (hopefully) 7.x. I got to 5.2.x without too much trouble. I'm currently trying to upgrade to 6.0 and I have a problem with controller actions ...
0
votes
3
answers
56
views
Javascript is not working in Rails/JQuery
I am trying to figure out why the javascript cannot locate the .submit-button from the modal. My javascript is in application.js but I do not understand what I am doing wrong. Am I meant to wrap my ...
0
votes
0
answers
65
views
owlCarousel is not a function in rails app
I have a rails app where I'm attempting to use an owl carousel to display a list of testimonials with images. I think I have everything set up correctly, but I'm still receiving a console error that &...
1
vote
0
answers
46
views
JS (jQuery) script in view do not operate after AJAX request is sent to controller
There is jQuery script in view. Script operates OK when the page is opened first time and data is put from server for view without AJAX. When I choose item from drop-down list, AJAX send it to ...
0
votes
1
answer
29
views
How to make jQuery available in ujs response templates for rails 7
I'm upgrading an existing (working) app to rails 7 from 6. I've imported jQuery and UJS like this:
import $ from 'jquery'
import Rails from '@rails/ujs';
Rails.start();
And then when a link has ...
1
vote
0
answers
84
views
Where am I loading jquery_ujs in my Rails 6 app?
Bugsnag is reporting this error on many pages: "If you load both jquery_ujs and rails-ujs, use rails-ujs only"
Rails 6.1.3, with webpacker.
application.js:
//
//= require rails-ujs
//= ...