Having trouble setting up Bootstrap + jQuery + easyAutocomplete in Rails 6

2
Rails
I have been reading articles/forums and followed some guides on how to set it up however I'm still having trouble running bootstrap and jquery. Installed bootstrap, jquery and easyAutocomplete via...
jessezhang replied

Rails 6 basics issue

1
Testing
I've been out of the rails game for a bit too long it seems. I tried to do a basic set up today to get pack into practice, using RSpec and Capybara, but just rails new -T and installing the gems c...
Chris Oliver replied

Webpack trying to serve incorrect files

1
Rails
I am using new relic with my app, and it seems there are often 404s that show up. The file it is trying to load is an older `packs/js/application-blah.js`, sometimes one revision old, sometimes th...
Willard replied

How to get ngrok working with webpack-dev-server

2
Rails
I run my local dev site on ngrok and the webpack-dev-server spits out errors to the console on a regular basis: `GET https://localhost:3035/sockjs-node/info?t=1566173800826 net::ERR_CERT_AUTHORITY...
Ghar replied

Making GeoSearch smooth with AJAX Discussion

2
General
Nice video Chris!
Amanda replied

"export 'default' (imported as 'Vue') was not found in 'vue'

1
Javascript
I'm following Chris' tutorial "Embeddable Javascript Comments Widget Models - Part 1" and I'm getting that error, any pointers on how to fix it? I'm running Rails 6.1.7.2 and my package.json looks...
Esteban Utz replied

How to use ESBuild in Rails with JSBundling Discussion

30
General
This is awesome, I have been using it for a couple of weeks now. I didn’t necessarily think webpacker was slow, except maybe on Heroku builds. But when you use this, you wonder why you put up with ...
Aaron replied

Getting back into Rails

2
General
I have been away from Rails for about three years now and I have been trying to get level back up my knowledge. What suggestions does everyone have relearning the Rails ecosystem? What is the best ...
Andrew Schutt replied

Embeddable Javascript Comments Widget Models - Part 1 Discussion

6
General
This is perhaps a bit of a newbie question but I wanted to ask your opinion on what are the things I would consider usually when it comes to using the approach you outlined in the video to sanitize...
Karl McCollester replied

How to use custom jQuery in Rails 6

2
Rails
I've been thinking about this for a couple of days already. For some reason my semantic-ui jQuery doesn't work. So here's what I did. On my webpack/environment.js: ``` const { environment } = r...
Shabbir Ahmed replied

public/javascript/lib files not available in production

5
Rails
I have added some javascript files to pubic/javascripts/lib and I have referenced them thus ... type="text/javascript" src="/javascripts/lib/add_all_plots.js" ... They can be loaded in dev no p...
Chris Oliver replied

Deploy Ubuntu 18.04 Bionic Beaver Discussion

77
General
Thanks btihen! I'll get the tutorial updated for its changes shortly!

Rails6 - how to make jquery available in chrome console?

1
Rails
I'm new to rails 6, webpack, etc It's working for me in my app and jquery is loaded (thanks for the intro @Chris) However - although jquery works correctly in all my loaded js, I can't use it to e...
Chris Oliver replied

ERROR in chunk application [entry] js/[name]-[contenthash].js Cannot use [chunkhash] or [contenthash] for chunk in ....

4
Rails
Hello i pass one day to debug this .... I following step by step this tutorial, but when in launch bin/webpack-dev-server https://dev.to/davidteren/getting-started-with-rails-6-1-tailwindcss-jit-we...
Barlow Kasule replied

How to use Vue.js and Turbolinks together Discussion

6
General
Hi! Maybe I do not understand correctly, but can I add SoundCloud with a turbolink and VUE? Work. How to do it?Thank you, make an example if possible.
Travis Smith replied

Access Rails constants from Webpack-managed JS

1
Rails
I'm just starting to use Webpack with Rails, and have a question. Let say there is a constant defined in Rails application. What could be a proper way to access this constant from JavaScript? Assum...
Chris Oliver replied
Solved

Chrome Only - getElementsByClassName error

0
Javascript
I am hoping someone might be able to shed some light on this issue. I have this JS code (below) located in packs -> application.js. It grabs the class name and adds additional class. The divisio...
Mountaindog posted

How to test ActionMailer in Rails Discussion

11
General
Great episode, Chris. I like how you said you don't really need to test CSS styling but instead focus on testing the higher level functionality of your mailers. That way, a developer doesn't go dow...
Homer Gregory replied

Setup MacOS 12 Monterey Discussion

30
General
Hello Chris, Thanks a lot for this guide. I was having a really hard time trying to install homebrew and rails on my MacBook after I installed Monterey. 😃

docker screencast?

6
General
Hi whole community, recently i'm learning something about docke, my question is: is gorails planning make a screencast about docker? when?. (i didn't found any about docker here) great videos. thanks
Richie McMahon replied

Want to stay up-to-date with Ruby on Rails?

Join 91,345+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.