All Questions
Tagged with ruby javascript
4,763
questions
1
vote
1
answer
30
views
Rails Cookies not updating on other pages
Is there a way in Rails to delete/reset a particular cookie when the value has been changed on one page?
So I have 10 tabs, if the cookie is changed on tab 1 it doesn't update on the rest of the tabs ...
0
votes
0
answers
18
views
Issue with rails hotwire trix textarea resize
im trying to create a textarea resize grippie more or less like the SO for a trix textarea with rais stimulus so i set this controller below
the issue is when i pull down the textarea the textarea ...
0
votes
1
answer
49
views
Rails app not updating page when in responsive mode
I have an app built using Ruby 3.3, Rails 7 with import map and dart-sass for my asset-pipeline, the application uses bootstrap for css and coreui\coreui-admin as FE template.
Saying that my error is ...
2
votes
2
answers
59
views
Change the class display after selecting a card with a date in Rails
I'm developing an application for a horsemanship school so they can organize their classes and see who booked a class and whatnot!
In the display of all the classes, I've created to help users choose ...
0
votes
0
answers
80
views
Error: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON checkout. Using stimulus on Ruby on Rails
basically I'm using stimulusjs in ruby on rails to create an ecommerce, and I'm trying to assign the stripe to my application (remembering that the functionality is on the cart page), but basically ...
0
votes
1
answer
70
views
RSpec Capybara throwing Selenium error when trying to click a button with browser confirm
I'm running into an error with an end-to-end Capybara spec in my Rails application.
Here is the relevant part of my view:
#show.html.erb
...
<%= button_to 'Cancel',
cancel_subscription_path,
...
0
votes
2
answers
247
views
Why is hot reloading not working in Vite + Rails?
I created a rails app, and installed vite_rails gem. My javascript is in app/frontend folder.
However, hot reloading when I save a JS file is not working. Even more, Vite takes 4 seconds to transform ...
0
votes
2
answers
56
views
Sticking a button on the bottom right
Picture of app
I'm making this project for my bootcamp, and I'm struggling with moving this + button to the bottom right of this container. My project has this container to simulate a phone screen. I ...
0
votes
0
answers
34
views
Trouble with Stripe Integration using Javascript and Ruby
I have a form in a Webflow website that dynamically calculates a price depending on selectors the user has chosen.
`<script>
document.addEventListener('DOMContentLoaded', function() {
const ...
0
votes
1
answer
62
views
JavaScript not working on Ruby on Rails project
I'm trying to follow this (somewhat outdated) Ruby on Rails tutorial and I'm having trouble getting any JavaScript to work. More specifically, I have this js file:
modal.js
$(document).on('turbolinks:...
0
votes
0
answers
39
views
Rails 7 and Adminkit when I click the icons disappear
I'm trying to implement Adminkit in Ruby on Rails 7, using feather icons. The problem is that when I click on a link_to tag the icons do not appear again.
At the same time this message appears in the ...
0
votes
1
answer
283
views
How can I integrate Dropzone.js in Ruby on Rails 7.1.2
I'm attempting to integrate dropzone.js in Rail version 7.1.2, but JavaScript does not work. There appears to be a problem with importing node modules in the most recent version of Rails, so I ...
0
votes
0
answers
18
views
Sketchup HTML:DialogFill fill Tags from selected csv file
Using Sketchup HTML:Dialog I am trying to fill in some input tags from a csv file.
I don't get an error, the code does not seem to get past reader.onload = function(event)
Has anybody had the same ...
0
votes
0
answers
160
views
Chirpy theme with jekyll picture is not uploading
use the chirpy theme, and i have this problem i opened a new folder named ‘images’, and on my markdown editor I see the picture perfectly, but on my site, i see it like this
enter image description ...
0
votes
0
answers
33
views
ChunkLoadError: cannot load js asset in jekyll site on AWS S3/CloudFront
TL;DR The browser is able to download a js asset, but the main js is not able to "load" it.
NOTE: I have no experience with javascript or web development.
The problem
I'm using the Hydejack ...