All Questions
Tagged with ruby-on-rails-7 jquery
16
questions
0
votes
0
answers
144
views
Toastr rails using importmaps in rails 7
I am having trouble displaying my toast messages in rails using importmaps default setup. This is my code.
This is my layout file
<!DOCTYPE html>
<html>
<head>
<title>...
0
votes
1
answer
212
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
109
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
0
answers
31
views
Uncaught TypeError: App.Routers.Maintenances.MyRouter is not a constructor
I am using backbone js as frontend in rails 7 application. In index.html file I have called backbone main file. code is coming in this file. But here I have initialise router file. In which getting ...
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
28
views
Ruby on Rails - ToastUI Viewer do not show when emailing PDF using wicked_pdf
I am using Rails 7.0.6 and Ruby 3.1.4p223
I am trying to email a PDF file to the user with a ToastUI markdown viewer.
email.pdf.erb
<head>
<%= wicked_pdf_stylesheet_link_tag "...
0
votes
1
answer
70
views
Bootstrap dropdown button does not unwrap on click
While I was working on my Ruby on Rails project I faced this problem. I tried to implement dropdown button, exactly as it was done on their site. However the button doesn't seem to work as intended. ...
-1
votes
1
answer
529
views
Problem while time needed in a multi select date picker
We're in a need to select multiple dates with a time. Not a range, need to select random dates. But multiDatesPicker only selecting multiple dates alone without time.
Checked some of the gems like ...
1
vote
1
answer
1k
views
How to add bootstrap and jquery in rails using import map?
I'm setup rails 7 app. And i wan't to add bootstrap and jquery using import map. I'll try but didn't work. I follow this step if i made any mistake please correct.
rails new demo
bundle install
...
3
votes
1
answer
2k
views
Rails 7 jquery: Uncaught ReferenceError: $ is not defined
I added jQuery to my Rails 7.0.2.4 project by the following:
First run command ./bin/importmap pin jquery, to add the following line in config/importmap.rb:
pin "jquery", to: "https://...
16
votes
1
answer
6k
views
Rails 7 (7.0.2.3) Importmap jQuery is not defined in view
I've looked around for as much help as possible regarding installing jQuery in Rails 7 (7.0.2.3). I want to use it in script tags in my views, but I can't seem to get it exported to where it is ...
2
votes
3
answers
849
views
How to implement Zurb Foundation to Rails 7?
I'm currently upgrading my rails app to 7. I was just testing it for a while then I have issues on Foundation Rails. I installed it and followed all the steps except the
Add Foundation to your JS
It ...
17
votes
4
answers
23k
views
How to install jQuery and bootstrap in rails 7 app using esbuild (without webpacker)
I'm trying to create a rails app by installing bootstrap and jQuery.
First I tried to create using
rails new name--css bootstrap
But its not working. So I did it with it manually.
I tried also using ...
7
votes
2
answers
7k
views
Rails 7 Importmap Pins incompatible Jquery source
Question
Why does the source generated by the importmaps command not work with Bootstrap 4.6.1 but a modified source for the same version of jquery work?
Problem Details
I created a rails 7 app using ...