Ruby on Rails Community Forum

GDPR and Rails 6

2
Javascript
I am trying to add a GDPR consent javascript to my rails 6 app. I have found the cookies-eu-banner (https://github.com/Alex-D/Cookies-EU-banner), which should be easy as pie to integrate, but I ju...
Mads Holm Oldfield Nielsen replied

Setup MacOS 11.0 Big Sur Discussion

0
General

Using Pundit and ActiveAdmin

0
Rails
Hello, I'm using pundit with active admin and getting this error message Pundit::NotDefinedError at /admin unable to find scope `Admin::AdminUserPolicy::Scope` for `[:admin, AdminUser(id: integer,...
Maksk89 posted

Sendgrid / Mailer Issue

1
General
Hello, I run a website and I am having issues generating mailer links correctly, when a User signs up they must verify their email address. This all works as expected, mailer sends the email and i...
Red Hendery replied
Solved

Why is github permission denied after adding deploy keys?

1
Rails
I followed every single tutorial, and tried multiple different methods of authenticating my server's access to the github repo. All of it results in the same error, permission denied. Last few li...
Jamie Crone replied
Solved

Getting NoMethodError while calling method from Model_name.rb

1
General
I am testing a model class method from 'rails console' called "progress" which is inside class 'Okr' as 'Okr.progess'. But getting NoMethodError (undefined method progress' for Okr (call 'Okr.conne...

Store a hash in a database

2
Databases
I have a calculator that takes yearly pension contributions into a hash. Therefore, everyone has a contribution lined up with a year. I don't want a database of dozens of years as one individuals c...
Solved

Ruby on Rails with Postgresql database

0
Rails
I am new to ROR & Postgresql database. I am trying to create a ROR API Application with Using Existing Database for my development. i want to know how to achieve the same. I referred many sites...
balaganesh posted

How do I search through associations with searchkick (elastic search) together aggregations

0
Rails
Hello folks, I’m trying to do a search query through an association. Here’s what I have. I have Property model which has_many :characteristics, as: characteristicable on one side. On the other si...
Owen posted

How do I hide fields based on option selected in dropdown

0
Javascript
I have a standard rails form with 2 fields: 1. Metric type (number, percent, boolean) 2. current metric value If the metric type is boolean, I want to hide the input for metric value Is there a ...

How do I dynamically load variables in Liquid templates?

2
General
I'm new to using Liquid templates, but I'm wondering how do I load data dynamically in my controller? The reason is because all the data is stored in my db in different tables, and loading all of t...

delete not working after using webpack

0
Rails
I have a rails 5.2 app, which run in a good way. After I followed the lesson about real-time group chat and used web pack, all the delete methods in my app are not working now. What are the possibl...
yy00809 posted

Stripe connect issues

4
Rails
I am currently working on integrating stripe connect to my app but it isn't working. I don't get any errors when I run it and it asks me to create an account and redirects back to the website but w...
Fatumata Jalloh replied
Solved

Help parsing a string down to what I need it to be.

2
Ruby
I am working on an API integration and I have to authenticate via one call, take cookie values from the response, and use them in a new call. Using HTTParty I can make all the calls I need to, but ...
RJ McCollam replied
Solved

I need help

0
Rails
Hello, the server that I hired made an update from Ubuntu 26-04 to 20.04 and since then I can no longer upload my project, I get the following errors: 2021/04/17 03:33:26 [error] 69263#69263: *5 "...
Miguel posted

How Do Determine If Is By Same User

0
Rails
Hello, I am building a app with comments. I want to implement the feature where you don't show the avatar as long as the previous comment is by the same user. Like how Skype does it. How can I achi...
Suleiman Nassor posted

When clicking on "update" on edit profile page, rails deletes the user instead of updating data to database

1
Rails
Hi, I am new to Rails. Can anyone help me with this issue?
karatepicke replied

Group Chat with ActionCable: Part 2 Discussion

13
General
Hi Chris,Is it possible to make a REST API for this app and create a Mobile app using Jquery mobile or Android and do real time chat with people chatting on desktop?I have an application with Rails...
felixOlesen replied

Rails repeats Webpacker packages if I go backwards (OwlCarousel, DataTables)

2
Rails
Hello there. I've got a Rails app that repeats packages if I go back to the page that's supposed to render them. For instance, my OwlCarousel with two images will multiply and have the carousel n...
cratag replied
Solved

DataTables Install via Webpacker

4
General
Anyone get this to work? Details here: https://datatables.net/forums/discussion/57642/installation-issues-rails-yarn-webpacker#latest
Greg Blass replied
Solved

Learning Ruby on Rails? Join our newsletter.

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