
Using the Trix Editor plus File Upload Attachments Discussion
52
General
Great vid, can this be done with the carrierwave gem?
Gabriel Ursache replied

HOW DO I SHOW avatar as a thumbnail or image in rails_admin panel.
2
Rails
Hi guys, I have rails model User which has_one_attached :avatar
In rails admin, I can create a new user and upload user image avatar, but the image shows up as a broken image.
How can I let it disp...
RobbieColtrane replied

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

[Performance] - Can I Still Refactor This Code?
4
Rails
I'm building an API based Rails app and I've one endpoint to list down all active users account numbers and gold balance inside that account.
The requirement is:
1. Take all active users (kyc_pas...
Zulhilmi Zainudin replied

What are the best practices for generating SEO friendly urls in Rails 5?
7
Rails
What is the best way to generate SEO friendly urls?
The Rails default is to put the id in the URL e.g articles/2
I want to be able to have a url like this
articles/article-heading
Previously I...
William Kennedy replied
Solved

Enable turbo_frame: modal tag conditionally
0
Rails
I have a link for creating a new item
<%= link_to "List an item", new_item_path, data: { turbo_frame: 'modal' } %>
This opens a item form in a turbo_frame_tag modal <%= turbo_f...
Ahmed Nadar posted

Adding an inline style to a Datetime_select field in simple_form
3
Rails
How do I add an inline style to a Datetime_select field in simple_form?
What I would like to have worked (this is in Slim):
`= f.datetime_select :published_at, style="width:auto;"`
but this isn't...
ramzieus replied

What is the correct way to convert virtual attribute to real one
0
Rails
First of all the logic of my app. The user could have several profiles situationally, such as blogger, advertiser or manager and act with different profile different role. But during public registr...
Yurii Cherniavskyi posted

Rails 6 + ActiveAdmin + ActionText
1
Rails
I need to create an app with video + blog content, users, permission etc that includes a CMS to change and rearrange content easily.
Anyone integrated ActionText into ActiveAdmin - what would b...
Chris Oliver replied

Category filter implementation (perhaps with search)
0
General
Hi Chris!
At the moment I have product and industry models with has_many :through associations, and would like to list the products based on the industries. I'd like to create a category (in my c...
Sean M posted

Companies / Employees / Products
1
Rails
Hi GoRails friends,
I have a list of products. Products can be created by users. So far so good.
Now, I would like to allow some users to be part of companies (0, 1 or several).
One user (the a...
Casey Provost replied

Cómo actualizar PostgreSQL 13.12 a 13.14
0
Databases
Buenas estimados, quisiera saber cómo actualizar la versión 13.12 a 13.14, actualmente apliqué sudo yum update postgresql13, si embargo actualizó y ahora me devuelve lo siguiente, pero sigue en la ...
Isaac Rodríguez Varela posted

Structure Guidance - Multi Tenancy Authentication / Authorization
19
Rails
I while back I was playing around building an app where you had multiple tenants (Company Model) and a single login (User Model). I then created roles (Role Model) to link the users to the tenants....
BKSpurgeon replied

Can somebody explain to me what the hell is PRO-CSS?
0
CSS
Hello everyone,,
To put it simply, Pro-CSS on a subreddit specifically just means that the sub/the mods of the sub are opposed to Reddit's possible removal of CSS, which is the formatting system us...
Jawline posted

Handling Inbound Email Parsing with Rails Discussion
1
General
Is it possible you make free for this episode? Would be appreciated.
Dan LeGrand replied

Are there any episodes or series on CMS related gems ?
5
General
Hi,
I have to build CMS for one of my clients. I would like to know your suggestions also please let me know if we have any related videos here.
Thanks,
Pardha
Matt Walston replied

Devise: Separate pages for account update and password
7
Gems / Libraries
Nothing too fancy. `users/edit` comes from Devise. `password/edit` is a passwords controller I added.
Fabiana Ramos replied
Solved

Rails 5.2 Credentials
2
Rails
Me again :)
Question about the new credentials in 5.2...
I've upgraded to 5.2 and actually really like credentials but wondering. Is it now the place to store all sensitive information including ...
Philip Benton replied

rails testing always raise the same error
2
Rails
No matter which test file does I run, it always raise this error.
I don't konw how to fix this, thanks!
```
$rails test test/integration/about_test.rb
Running via Spring preloader in process 524...
csko12 replied

Disabling a tenant in a Multi-tenancy Saas app with apartment
3
Rails
Hey everyone, I was launching a multi-tenant app and want to know if there is a way through which we can disable a tenant if they cancel the subscription without deleting their data.
I can add thi...
Solved