Skip to main content
How do I nest two resources that are both polymorphic associations?
In my app, I have several models for various product types, as each product has different attribute types and I wanted to avoid using STI. However, I am using the same Review and Comment system for...
snake117 posted
1
Rails

Switchery duplicate when clicking back button using Turbolinks
I'm implementing Switchery on my Rails app, and I'm also using Turbolinks. Everything works fine and the switchery is working except when I click to another page and then click the back button, the...
Lee Terng Gio posted

How do I send an image or file to an API
What's best practice to send an image or pdf to an API endpoint? **Scenario:** I have a vuejs app I want to send an image or PDF to a Rails api application. The I want to use active storage to ...
codecabinaustralia posted

Facebook API and Refreshing Auth Tokens with Koala Discussion
Hi! Is koala still alive? As i see - latest commit was in 2017
Alexey Poimtsev replied

Group Chat with ActionCable: Part 4 Discussion
Had the same error, running on Rails 5.2, needed to replace form_for with form_with for the message form ``` { :id => 'new_message'} do |f| %> ``` Also Rails UJS in 5.2 doesn't inter...
Jer Kehoe replied
57
General

How do I use easyautocomplete in rails 6?
I haven't done it exactly like that, but have it as below: ``` const { environment } = require('@rails/webpacker') const webpack = require('webpack') environment.plugins.append('Provide', n...
Umar Ghouse replied Solved
10
Rails

How to convert each pdf pages to an image and display a thumbnail?
Hi everyone, I am new to rails and would like to ask how to create pdf thumbnails on each pages and/or convert each pages to an image and generate a thumbnail. Thank you.
Harris Mariano posted Solved

How to convert each pdf pages to an image and display a thumbnail?
Hi everyone, I am new to rails and would like to ask how to create pdf thumbnails on each pages and/or convert each pages to an image and generate a thumbnail. Thank you.
Harris Mariano posted Solved
1
Ruby

How to convert each pdf pages to an image and display a thumbnail?
Hi everyone, I am new to rails and would like to ask how to create pdf thumbnails on each pages and/or convert each pages to an image and generate a thumbnail. Thank you.
Harris Mariano posted Solved

How to validate model attribute
Hello everyone, question. I have the following code: class Country < ActiveRecord::Base has_many :cities, dependent: :destroy accepts_nested_attributes_for :cities end class City...
Harris Mariano posted
1
Rails

Group Chat with ActionCable: Part 5 Discussion
Hi Chris, I don't want to use Turbolinks in my app. Is there any way to replace the code?
Lee Terng Gio replied
22
General

Help with using FFmpeg and Ruby Rails
Hey all. I'm new to Ruby / Rails and I am doing a project where I need to upload a video into a Rails web app which would take screen shots, process them put them back together https://reversephone...
TrevorGage replied

Install Ruby On Rails on Mac OS X 10.15 Catalina (Issue)
This forum is completely worthless
WoodbineOne replied
4
Rails

Criipto service integration in Rails app
Hello, i want to integrate Criipto service in my Rails app. I tried different ways, like auth0, openid an so on, but can't. anny suggestion how to do this?
Bukenco posted

Direct Uploads with ActiveStorage Discussion
Thanks for this episode, this was really interesting ! I still have a question though, what about direct upload validations ? For example what if you want to make sure that your users can't upload...
Alexandre replied
14
General

Introduction to Importing from CSV Discussion
I am also looking for the futhur information. Thanks [Liteblue](https://liteblue.guru/)
mikein delrein replied
46
General

Sending Emails with SMTP and Sendgrid Discussion
Try to `reload!` your console
Gabriel S. replied
21
General

Rails App configurations for AWS CodeBuild
I have a rails application that is deployed on `AWS EC2 instance` with `CodePipeline`. I have added the `Build` stage in the pipeline using `AWS CodeBuild` to build test my code. I have no idea ...
hetal sharma posted
1
Rails

How to relate such as tables of a scaffold and a model and presentation of data in the show.html.erb view of the scaffold. Rails.
You can't save `street` to the Patient model if you don't have have a column with that name. You said you were using a separate table to store the addresses, so you would need to use a nested f...
Chris Oliver replied
4
Rails

How do I do multiple uploads in Active Storage?
Hi there, I am following this tutorial to do multiple file uploads with DropboxJS but I don't know how to get multiple images belonging to a model to show in the 'show' page. Only one image show...
Arthur Truong posted
1
Rails

Subscribe to the newsletter

Join 31,353+ 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.