Skip to main content
Install Bootstrap with Webpack with Rails 6 Beta
Javascript Solved • Asked by Shawn Wilson
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack **Step 1:** `yarn add [email protected] jquery popper.js` ...
9
posts

How do I properly handle submit events in Vue + Rails?
Javascript • Asked by Felipe André Malaquias
Hi! I'm learning Rails, Vue and JS and I've got a question on the proper handling of submit buttons on Rails using Vue component to validate it. I'm using mdbootstrap for the styles. I built ...
2
posts

Is possible to add another JS framework (React, Vue) on a application that already has Angular 2 integrated on it?
Javascript • Asked by Lucas Moraes
Hi, all. We has an app with Rails 4.2.5 and Angular 2 integrated (we do not use it very much). But we would like to switch to another JS framework: Vue and Reacth are good options. But will w...
1
post

Rails 6. SyntaxError: missing ) in parenthetical (UJS)
Javascript • Asked by Nikola Okonesh
Hi! I use pagination Pagy gem, and button "More..." (more pages Ajax) not work index.js.erb ``` var colum = document.querySelector("#categories_index"); var pagin = document.querySelector(...
1
post

Is it possible to incorporate React + Redux into existing Rails application?
Javascript • Asked by Ken Hibino
I have been working on creating a Medium clone to learn Ruby on Rails. It started out as just a plain Rails app but as the app evolved I started using React in the front end (using react-rails gem)...
12
posts

Populate dropdowns based on selection with Stimulus JS
Javascript • Asked by Jay Killeen
This is a follow up question from [Populate dropdowns based on selection](https://gorails.com/forum/populate-dropdowns-based-on-selection) that I asked like... 3 years ago... and still haven't real...
6
posts

How do I have data-turbolinks-permanent inside data-behavior="vue"
Javascript • Asked by Alejandro Ruiz
Hello, I'm building a RoR application with Vue.js using a data-behavior="vue". I need to use the data-turbolinks-permanent to keep a nav-bar generated with bootstrap-vue.js and mdbootstrap-vue (...
1
post

Why Wistia?
Javascript • Asked by sweeetland
Hi guys! I'm looking to build an app which will rely heavily on users uploading videos and then playing them within the app. I know Chris uses Wistia but it's pretty pricey, expecially .25c p...
6
posts

How do I use javascript in assets/javascript with HTML
Javascript • Asked by jon
I am completely new to Rails...sorry. I have a simple application. I want to detect when a field changes and in a form_with block in a new.htlm.erb file and execute pure javascript code in the ass...
1
post

Browser Back button click.
Javascript • Asked by Rahul Kumar Srivastava
I am using pagination and suppose I click on pagination count 3. It opens the table afterwards I any one link. After this I want to get back to same 3rd page so I clicked on browser back button, ...
1
post

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.