Is possible to add another JS framework (React, Vue) on a application that already has Angular 2 integrated on it?

0
Javascript
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 we ha...
Lucas Moraes posted

Rails 6. SyntaxError: missing ) in parenthetical (UJS)

0
Javascript
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("#ca...
Nikola Okonesh posted

How do I have data-turbolinks-permanent inside data-behavior="vue"

0
Javascript
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 (si...
Alejandro Ruiz posted

How do I use javascript in assets/javascript with HTML

0
Javascript
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 asse...
jon posted

Browser Back button click.

0
Javascript
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, so...
Rahul Kumar Srivastava posted

Segment Analytics integration, my home page pageview event is firing twice in rails 6

0
Javascript
Hi, has anyone had the issue of their home page pageview firing twice for one page view in rails 6 when they've installed Segment? I've added the Turbolinks snippet, but not sure where the problem ...
Tom Connole posted

How do I get Rails Ajax to work using ujs

0
Javascript
Hello, I am trying to user ajax on rails using the ujs library. I am calling the new controller action,with the remote: true property, however the request is being processed as JSON instead of JS.

Stimulus - flatpickr

0
Javascript
Hi all i've been trying to do one thing without sucess for few days... i want to select a date on the flatpickr and then based on that date create a table Date selected Date selected -1day Date s...
kriera posted

Why have the three dots syntax?

1
Javascript
So basically I have a doubt in[ java developement](https://crbtech.in/java-training/top-java-developer-training-and-placement-in-pune) which i don’t get what’s the difference between these two li...
Chris Oliver replied

Vue Trello series - Disable VueDraggable on certain child fields such as "Input"

0
Javascript
Hi, So I've just worked my way through the Vue trello course series (Love it by the way), and no going on to rework and add some more flair/features to it. One feature I'm looking to improve is a...
Matthew Deloughry posted

Auto saving forms as they type.

2
Javascript
Any good tips on how to auto save the form while user is typing? For example: Post is a model. I press create new post to open up a form. While I am typing a post field—it auto saves the post pr...
Anthony Lee replied

Easy Autocomplete

0
Javascript
Hello everyone I was using easy-autocomplete plugin for my project and its working well thanks to this site but I reilised this plugin can put html tags too and I cant avoid html tags injections. A...
Mehmet Şamil Büyükçağlayan posted

create.js.erb with Content Security Policy

0
Javascript
Hello, I'm researching best practices on implementing a Content Security Policy for my 5.2 rails app. I have a few `remote: true` forms that respond with `*.js.erb.` It's my understanding that thes...
computer_smile posted

It seems that at.js is broken with trix editor, Anyone know a work around

0
Javascript
Here is a link to an app I built showcaseing the issue, Any help would be great I opened an issue on at.js's github. https://trix-at-js.herokuapp.com/
Corey Gibson posted

CoffeeScript - How to work with coffeescript in ruby on rails?

1
Javascript
I am working with CoffeeScript in Ruby on rails. And I am using http://js2.coffee/ to convert my javascript and jquery into CoffeeScript. We know, Ruby on Rails provides us by default .coffee file...
Chris Oliver replied

Is it viable to use Vue + Rails to make a Progressive Web App (PWA)?

1
Javascript
I need a web + mobile app on PostgreSQL that has offline functionality so I decided on making a PWA. There seems to be only 2 frameworks for making PWAs: Angular and Vue. So I decided to use Vue...
jun replied
Solved

How do I add a conditional snippet of page specific javascript (likely a turbolinks issue)?

4
Javascript
Here's to hoping I can be clear and concise about my problem. I am willing to venmo/paypal a beer's worth of cash to anyone who can help me 🍻 I currently have a bootstrap (3.3.7) modal that is, by...
Peter Marcano replied

How do I properly handle submit events in Vue + Rails?

1
Javascript
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 a fo...
olidev replied

How do I handle rails flash message with Vue.js submit method?

0
Javascript
Hi there! I watched this video about nested forms with Vue.js. https://gorails.com/episodes/using-vuejs-for-nested-forms-part-2?autoplay=1 How do I handle rails flash messages after Vue.js submit...
Pedro Costa posted

Why Wistia?

5
Javascript
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 per v...
Daniel Weaver replied

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

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

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