How to test attachments in ActionMailbox?

4
Rails
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this? receive_inbound_email_from_mail( ...
Taha Husain replied
Solved

How to build something like a Youtube advertisement system

2
Rails
Hi Chris, I am pretty sure they have a complex system implmented but at the basics of it, how could you go about implementing an autoplay advertise video before the actual video itself starts to p...
Darren Booker replied

Need a hand with associations

6
Rails
I have a users model, and an accounts model. Basically I would like to have... - An account has one owner - An account can have many users - Users can only be a member of one account. Does the fol...
Ivan Raszl replied

How do i create and custom module with view

1
Rails
Planning to create a generic module for filters in my app. Is there a help where i can see how to create the modules and how the file structure would be for that?
Ivan Raszl replied

Video idea: Google insights

0
Rails
Hi Chris, Would be nice to see a video about optimizations for rails for better score in google's page speed test. https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fgorail...
Pedro Carmona posted

How to mark a post as read, so that it won't show up again for a user?

6
Rails
I was looking at the unread gem but it seems a bit complicated and many seem to run into difficulty with it. Instead, I was thinking of adding an 'already_read' column (boolean) to the post mode...
Monroe Mann replied

Jumpstart Template

1
Rails
I followed this tutorial (https://github.com/excide3/jumpstart), when I go into powershell and enter EDITOR=subl rails credentials:edit it comes up as a empty file. If I try and migrate the Databas...
Tom Marler replied

Ruby on Rails: gem devise session logged in

1
Rails
I have two tables, company and employee, so I would like when I register an employee, his registration was also for the company that was already logged, that is, without having to have to choose wh...
Ivan Raszl replied

Redirect show to edit mode always

0
Rails
Hi, I want to work always in edit mode and not in show mode. So when i go to show a object, I want to be in edit mode. How I can make this possibile? First I think that I can put a redirect in show...
AlessioVaralta posted

Action text rails 6

0
Rails
Hi Chris, i cannot upload the images from rich text drag and drop to s3 from dev. my development .rb `config.active_storage.service = :amazon` my storage.yml ``` local: service: Disk root: ...
Pratima Singh posted

Token Authentication with Rails, Vue, GraphQL and Devise

0
Rails
Check out [this article](https://engineering.doximity.com/articles/token-authentication-with-rails-vue-graphql-and-devise) on auth using Vue + GraphQL and the battle tested Devise gem. All feedback...
James Klein posted

How to export the entire active records to a csv file where each sheet is a active record

0
Rails
Is there a way to achieve exporting the entire active records in a rails application to csv where each relation is a sheet of csv or there is another way to export full db data.Any suggestions?
Abhishek Aravindan posted

2 rails apps , 1 database

0
Rails
Hi fellas, I have a project to do where 2 apps share one database! **1.** The first one (app1) is a basic blogging application that lets a user register and then write posts. Each user can write, r...
AgonIdrizi posted

How to run serial (multi-step) background jobs?

0
Rails
After a user submits a URL via a form I need to run a handful of jobs in series What would be a good way to do this? 1. User submits URL 2. Use the URL to build file paths 3. Download file 1 fro...
Daniel Weaver posted

Using active_record_store instead of cookie_store

0
Rails
I am using intializers/session_store.rb `MyApp::Application.config.session_store :cookie_store, key: '_myapp_session'` config/application.rb `config.middleware.insert_before "ActionDispatch::Ses...
Amit Mallick posted

How to Build a Forum with Jumpstart Pro

3
Rails
Hey Guys, I'm following along with the How to Build a Forum with Jumpstart Pro video (https://www.youtube.com/watch?v=ZSom4V-nYxA&t=903s) and I am running into the error "The action 'create' ...
Rob Thomas replied

Should I rewrite my app?

3
Rails
Before you shout "NO!!" hear me out. I think this may be one of the those cases where a rewrite is reasonable. Our current application: * is 6 years old * is currently on Rails 3.2.14 and Ruby 2.0...
Daniel Weaver replied

Aparment switch in multiple database rails application

0
Rails
I have two rails application "base1" and "base2". base1 uses db1 and have multiple tenants inside this database. "base1" is multitenant application using apartment gem. "base2" is single tenant app...
Abhishek Aravindan posted

Is it possible to make multiple belongs_to or has_one association?

0
Rails
I have a table Operations with two columns referenced to Accounts. One column is called **debit_id** and other **credit_id**. Model looks like ``` belongs_to :debit, class_name: :Account, opt...
Kolbasoid posted

Is it possible to remove formatting tools from the ActionText Trix editor?

2
Rails
I looked at both the ActionText and Trix documentation and could not find anything on how to disable/remove formatting tools and disable file uploads for ActionText. For the project I am working o...
Adam Stockland replied

Learning Ruby on Rails? Join our newsletter.

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