Skip to main content

All Questions

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 ...
Patrick Jones's user avatar
2 votes
0 answers
124 views

How do I do require in Rails 6.1? How do I require Bootstrap JavaScripts in rails 6 and higher?

I am trying to require these Bootstrap JavaScripts in my project using rails 6. //= require jquery //= require jquery_ujs //= require bootstrap-sprockets //= require turbolinks //= require_tree . in ...
user15765109's user avatar
0 votes
1 answer
54 views

rails bootstrap popover stops working when form has validation errors

I'm on Rails 6 using Bootstrap 5. I have a form that uses bootstrap popovers, when the form has errors the Rails validations will prevent it from being submitted and the popovers no longer work when ...
random_user_0891's user avatar
1 vote
0 answers
98 views

Uncaught TypeError: $(...).hsSideNav is not a function, with webpacker in Rails 6

I have a Rails 6 application working with the asset pipeline, which I'm trying to move to webpacker in order to use turbo. So far I've managed to correctly set up turbo. The app uses some bootstrap ...
Jesús Dugarte's user avatar
1 vote
1 answer
147 views

Bootstrap JS apparently being overwritten by webpack

Description I noticed when using a JavaScript file (e.g. app/javascript/packs/custom.js), Bootstrap jquery events like shown.bs.modal, does not work. I want to use different js files for different ...
SLG's user avatar
  • 21
4 votes
1 answer
429 views

Bootstrap tooltip doesn't go away with a back button click and AJAX calls

I am having an issue where the bootstrap 4 tooltips doesn't go away with the browser's back button click: I am using rails, and I do have this code: document.addEventListener('turbolinks:load', () =&...
15 Volts's user avatar
  • 2,027
0 votes
0 answers
82 views

Appending Highchart (Line) to Bootstrap Modal

In my Rails project, I have an Highchart(Line chart) Initialized and plot in a partial/view. I want to append this chart to a bootstrap modal. I have tried multiple methods but nothing seems worked ...
raven's user avatar
  • 33
2 votes
2 answers
3k views

Rails 6.0.3.2 yarn add bootstrap jquery popper.js is not working and cannot use bootstrap tooltip

I am using rails 6 version 6.0.3.2 Here are all my steps for setup bootstrap 4: step 1: rails new test_tooltip step 2: rails g controller welcome index step 3: in welcome/index.html.erb <div class=&...
akasuki101's user avatar
1 vote
1 answer
784 views

Bootstrap navbar toggler working only on first click

My navbar collapses but the hamburger button which appears on collapse is not clickable. I am using Bootstrap 4.3.1 & Rails 6. I downgraded jQuery from 3.5.0 to 3.4.1. as suggested here by doing ...
Gabriel Guérin's user avatar
0 votes
1 answer
39 views

Bootstrap modal window not appearing

I took the code for the bootstrap modal window directly from the bootstrap site, so I have this in my .html.erb file. But nothing appears on the page when I click the button. Anybody have any thoughts ...
greg's user avatar
  • 11
0 votes
1 answer
100 views

JQuery Regaining control over a external pop-up

As part of the payment process I must open a twitter-bootstrap modal by calling a form, this form in turn opens an external window to start the process with the banking channel guiding the user to ...
Oscar Olivera's user avatar
10 votes
2 answers
6k views

Getting Jquery and Bootstrap to work with Rails 6

I am a new to rails and struggling to get Jquery and Bootstrap to work with Rails 6. I think it has something to do with switching the app from rails 5 to rails 6 and using webpacker to load Jquery ...
Tomas's user avatar
  • 376
5 votes
2 answers
3k views

Bootstrap hide modal not working in Rails 6 using ajax

I am trying to hide a bootstrap modal in rails 6 via a jquery call but after 2 weeks of trying I can't seem to get it to work... My modal is setup in a view like this: <!-- Button trigger modal --...
Tomas's user avatar
  • 376
0 votes
1 answer
1k views

Rails Bootstrap 4 with Turbolinks

I have a fully functional rails app with the bootstrap-rubygem (v4.3) installed. In my app I have a partial that gets re-rendered when a remote: true link is clicked. When this link is clicked I have ...
HermannHH's user avatar
  • 1,742
2 votes
1 answer
1k views

Render page with new form in modal instead of new page in Ruby on Rails/JS

I am unable to render a (bootstrap) modal instead of rendering the classic new.html.erb, used to to create a new room. Given the fact that I am new to JS and modals, I have the feeling I am lacking ...
techquestion's user avatar

15 30 50 per page
1
2 3 4 5
34