Import into administrate?

8
Rails
Hi - I used Jumpstart and really like the administrate gem relative to ActiveAdmin. One issue that I am having a hard time is the import add-on doesn't seem to be available like it is for ActiveAdm...
Chris Oliver replied

Rails/Sendgrid messages are blocked by receiver's servers

1
Rails
Messages blocked by all receiver's servers(mail.ru, gmail.com). ![console](https://i.imgur.com/Q4sKtSH.png) console log: https://i.imgur.com/Q4sKtSH.png ![Image of Activity in sg](https://i.imgur.c...
Chris Oliver replied
Solved

Cookie Replay Attack

1
Rails
In this scenario, there is a Rails Application with a valid user logged in, and the server issued a session cookie, SESSION-ID, to the user. If the SESSION-ID is the cookie that identifies the sess...
Chris Oliver replied

Actiontext used for templates/placeholders

0
Rails
I've got a little business finance management app and I'd love my users to be able to create their own custom templates for quotes/invoices. The way all my competitors do it is through merge fields...
Tim Dowling posted

How to Access rails User session into Laravel Application?

0
Rails
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...
HardikShah47 posted

Can't resolve image into URL: undefined method `attachment_url' for #<#<Class:0x0 ...

1
Rails
Can't resolve image into URL: undefined method `attachment_url' for #&lt;#:0x00007f9f6493d770&gt; I spent hours to solve it but nothing !! Env: ruby : ruby 2.6.5p114 | Rails 6.0.2.2 what i did ...
almokhtar replied

Struggling with active nav tabs setting active class

0
Rails
I have an issue I haven't been able to solve. I have a products page set up with some different sections via bootstrap 4 nav tabs. General Info, Images, Pricing etc. I am trying to make it so that ...
spacerobotTR posted

How do I calculate a computed value in a model when showing or indexing over that model in its controller?

1
Rails
I'm new to Rails but not new to programming or webdev. I have a `Student` model that uses a service object to pull data from Google Cloud Firestore for its `level` attribute, an integer. I have ho...
Jordan T-H replied
Solved

Working with ActiveRecord and Google Cloud Firestore

1
Rails
I'm pretty new to Rails, and I was wondering what the "right" way of architecting a small app would be given the following scenario. Users create Rooms, then from there add to them a number of refe...
Jordan T-H replied
Solved

How can i switch to slave database in case of master fail?

0
Rails
I have 2 MySQL instances. One is master and the second is a slave. I want to configure the rails app in a way that if the connection to my master database failed, then auto-connect to the slave dat...
hetal sharma posted

How to destroy file with shrine when associated model has deleted ?

0
Rails
hi, someone knows how to delete an uploader file with shrine when the associated model is deleted like purge_later from active_storage.
francel.webdev posted

Encrypting ActiveText contents using Symmetric Encryption

0
Rails
Hey there, I’m using ActiveText, using the Trix editor, in one of my fields in my model. The model in question has the correct attribute: ``` has_rich_text :content ``` However, I’m looking at a w...
Vincent posted

Generic Infinite Scrolling

3
Rails
I am building an app that has a couple of columns and I only want one column to scroll infinitely. I am trying to hack together a gem free version, but I am a novice with .js or jquery. My questi...
Gabriel replied

Get Email from DataBase for creating newsletter

2
Rails
I am trying to create a newsletter, Ive followed this instructional video on how to save the information but I am confused on what to do from the end of the video, https://www.youtube.com/watch?...
Derek Levine replied

How to send checkbox ids to modal pop up using stimulus js?

0
Rails
I have got list of items with checkbox on the left side of each row having id of that particular row. How can I send the ids of items to the modal using stimulus js so that I can display brief deta...
Animesh Dash posted

Heroku RedisCloud connexions on "Realtime Online User Tracking with ActionCable"

0
Rails
Hi all, I'm running in a weird issue. Following the Realtime Online User Tracking with ActionCable screencast, in an app using rails 5.2 I used: ```ruby ActionCable.server.pubsub.redis_connection_...
Nathan Chalot posted

My first gem

0
Rails
Hi, I have implemented my first open-source gem and I would like to share it with you all. It's for validating request parameters outside your controller logic: https://github.com/felipefava/requ...
felipe posted

How can I integrate the number of users in a room?

0
Rails
This is very cool tutorial https://gorails.com/episodes/group-chat-part-7. Now I want to integrate the number of users in the room there. How can i do it? Thanks
ilikali posted

Rails Complex Model Association, Shared Document Between Users and Teams of Users

0
Rails
I have a relatively complex model association in mind, and was wondering how I could accomplish it. In essence, this is what i want to accomplish. - I have a User model, and a Document model - U...
Ibraheem posted

how i plot a profit_loss graph

0
Rails
i have income,expense, user controller i want to plot a graph of currrent user profit i calculated it in model. def total_expense expenses.pluck(:amount).sum end def total_incomes inc...
Ahmedzain posted
Solved