Skip to main content

All Questions

0 votes
1 answer
202 views

Rails 7: onclick javascript issue

I need some help with the issue bellow... This is the setup I have: Rails 7.0.5, ruby 3.0.0p0. I have installed bootstrap 5. Also I have installed jQuery and jQuery-ui according to this https://...
Theopap's user avatar
  • 765
0 votes
1 answer
179 views

rails 6 jquery not working in production error says $ isn't defined

I'm getting the error $ isn't defined in production only The error doesn't occur in development and $ is defined in config/webpack/environment.js const { environment } = require('@rails/webpacker')...
Mices's user avatar
  • 89
0 votes
1 answer
150 views

rails 6 / webpacker tooltip and popover event listeners TypeError: $(...).tooltip is not a function

I'm getting the error TypeError: $(...).tooltip is not a function If I comment out tooltip only, then I get the same error for popover(is not a function) I had to remove the event listeners from ...
Mices's user avatar
  • 89
6 votes
1 answer
565 views

How to use JQueryUI in views in Rails 6

I am having difficulty using JQuery and JQueryUI in a Rails 6 app. JQuery and JqueryUI both work in application.js HOWEVER, JQueryUI is not working in views. How do I make it work in both cases? My ...
don_Bigote's user avatar
2 votes
1 answer
292 views

jquery-ui sortable - moving tasks between lists

I'm trying use jquery-ui sortable connected lists and persist sorting changes in a Rails app. Lists have many tasks. Lists can be sorted among each other - works. Tasks can be sorted among each other -...
Yshmarov's user avatar
  • 3,759
0 votes
1 answer
303 views

How to include jquery-ui in Rails 6 project?

I'm using Rails 6.0.3.2 and jquery-ui 1.12. Still can't make it work: Uncaught TypeError: $(...).datepicker is not a function Tried: I. Editing config/webpack/environment.js Last version: environment....
Alexander Gorg's user avatar
0 votes
1 answer
1k views

RAILS rails assets:precompile fails

I have RAILS 6.0.3 running, so I use the webpacker. When I try to compile the assets with rails assets:precompile in RAILS deveopment mode it runs very well, but when I try to run it in RAILS ...
Sven Kirsten's user avatar
0 votes
1 answer
333 views

Jquery-ui Datepicker not showing in rails view, got error Uncaught TypeError: $(...).datepicker is not a function

Datepicker from jquery-ui doesn't show up in my view. application.js require('jquery'); require("jquery-ui/ui/widgets/datepicker"); environment.js const webpack = require('webpack') environment....
user avatar
-2 votes
1 answer
13 views

How do I change my http-requested CSS/Jquery files to something that works in a Rails PROD env?

In my html.erb I have this: <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="...
PinkElephantsOnParade's user avatar
0 votes
0 answers
28 views

JQuery toggle not working while using a single button to hide and show the content

I am using Jquery in my rails app. Where I am trying to toggle the comments in my blog app. The toggle should be through the same button and should change text from "Hide Comments" to "Show Comments" ...
Vijay Sharma's user avatar
2 votes
0 answers
39 views

Gem 'jquery-ui-rails' is not available in SDK 'RVM: ruby-2.3.1'

So I am trying to use jquery-ui in a rails app. I put gem 'jquery-ui-rails' and run bundle install. I have Using jquery-rails 4.2.1 and Using jquery-ui-rails 6.0.1. But I don't have an application.js ...
ga4696's user avatar
  • 139
3 votes
1 answer
2k views

'jquery-rails' and 'jquery-ui-rails' can they be managed under one project?

I have a Rails app using Rails 5.1.6 and ruby 2.3.5p376 I have these two gems in my Gemfile gem 'jquery-rails', '~> 4.3.3' gem 'jquery-ui-rails', '~> 6.0.1' In show.html.erb I have the ...
vidur punj's user avatar
  • 5,941
1 vote
1 answer
309 views

Add extra Form Data with JQuery File Upload ( Carrier wave implementation)

Try to implement file upload functionality in a rails app with the help Jquery File Upload and carrier Gem. while uploading each document, I need to save a tag for each document. I try a lot to add ...
Anand Jose's user avatar
0 votes
1 answer
318 views

How do I tell jquery autocomplete to display one item per line instead of the entire return value in one line?

I'm using Rails 5 with JQuery UI's autocomplete feature. I'm using AJAX to get the appropriate suggestions for my textbox ... $(function() { return $('#s').autocomplete({ source: function (...
user avatar
0 votes
1 answer
106 views

ActionView::MissingTemplate when using Rails.ajax and jquery sortable plugin

I followed this episode on Go Rails to add the jquery ui sortable plugin to my app (basically to add drag and drop functionality). Everything works until the ajax request. Even then, it starts the ...
Umar Ghouse's user avatar

15 30 50 per page
1
2 3 4 5
21