Javascript Ruby on Rails Forum

Install Bootstrap with Webpack with Rails 6 Beta

12
Javascript
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 bootstrap@4.3.1 jquery popper.js` **S...
Solved

Trix editor in react native

3
Javascript
Anyone have suggestions for how to implement the trix editor in a react native front end? The key is I want to maintain trix’s mention functionality and the attachment of images. Ultimately I’d li...
davidlbean replied

Dropzone with Shrine

4
Javascript
I just switched to shrine as Active Storage doesn't support custom file paths. At my day job a question on security assessments requires blob storage to have some sort of tenant separation and i th...
RuthDow replied

When I search for a movie it shows the json output

1
Javascript
Hai Chris First of all it was a wonderful and useful video When I search the keyword it open the result in json where do i make mistak...
RandallGuerrero replied

Should I be able to master JavaScript in less than two months?

6
Javascript
I realise this is probably a redundant post because others have asked the same question, but I'm curious if I'm any good at JavaScript now that I've been learning it for two months. I feel as if I ...

Select Or Create Field For Tags and Labels without jQuery

1
Javascript
I’m looking to explore a feature for a CRM that allows a user to add tags or labels to a customer record. They might not have the tags or labels in the database and I think it would be more intuiti...
kramer.k replied

How do I change the Java Virtual Machine (JVM) that MATLAB is using on Windows?

4
Javascript
I would like to use a different version of JVM than the default used in MATLAB on Windows.

field_for with index

1
Javascript
I have a form that uses java script and the data-attribute to do some calculations (Calx2). to make the data-attributes unique i use the the index method that is available. ```ruby <%= ...
Wouter van den Beld replied

JavaScript vs TypeScript

1
Javascript
Anyone here who can help me with this?

ReactJS with Rails

12
Javascript
I'd love to see a series on a **_real world_** app using **ReactJS** with Rails API.

Decoupling Development: Rails + Next.js for Collaborative Full-Stack Projects

0
Javascript
Hey Rails Community! I want to share the gem that I believe will significantly streamline full-stack development workflows: https://github.com/raphox/next_rails_scaffold What Does It Do? The gem ...

"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

Populate dropdowns based on selection

4
Javascript
I'd like to get people's thoughts on the best approach. I'd like to have a search ability where once a selection if made, the next dropdown box populates with only the available options from the d...
Chris Oliver replied

How can i install Daisy UI?

0
Javascript
I want to be able to use Daisy UI, but i am reading different ways to accomplish this – making me confused on how to actually install node packages. 1. One way is setting up the CDN, which is not ...

How do I render a (Stimulus) modal without user interaction?

1
Javascript
When a data value in my view meets certain criteria (e.g.: "< 0"), I want to render a modal (which is configured using Stimulus). I know this is a noobish question, but I'm not finding obvious ...
Solved

Rails Webpack caching

1
Javascript
I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have...
Solved

Issue with inline-form from stimulus twitter example

2
Javascript
I have a rails 5.1 app that I am working the stimulus twitter example into. Instead of tweets they are going to be comments. The comments are linked to servicerequests. So on the servicerequest/sho...

How do I embed an internal routes/show page on to an external website?

1
Javascript
Hey all, I've seen websites where you place some Javascript code - and they are able to display information from another website on their website. Wondering how I can do the same? I have a www...

Add image attachment to user post and server via AWS S3

3
Javascript
Hello. I have a RoR 5.1 app, with an existing form that allows users to add a post to my app. However I want them to be able to include an image as an attachment. I'd like to save the image to S3...

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.

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.