How do I keep old files uploaded with active storage?

0
Rails
I'm using active storage with active_storage_db gem to keep files in Postgres instead of storing them in the cloud. I have a document which I upload - has_one_attached (i don't need to upload mult...
hcosteira posted

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

Will_paginate problems

1
Rails
Hi ive been building a new web app based on michael hartl tutorial but im having problems with the will_paginate tests. When i load all my users it will display every one of them so of course ...

Using React

19
Rails
I'm trying to learn how to use react in my rails 5 app. I've just finished following Kenny Hibino's you tube series for his medium clone. He used react-rails gem, but then realised he wanted to u...
Rio replied
Solved

Activeadmin with actiontext in Rails 7

0
Rails
How i can use activeadmin with actiontext in rails 7
Muhammad Bilal posted

Need help on Webpacker issue with Rails 6

0
Rails
I am using Rails 6, Ruby 2.7, and Webpacker 4. X I am getting below error ActionView::Template::Error (Webpacker can't find application.js in /Users/developer/Documents/Projects/knowhub/public/pack...
swathi arisankula posted

How would you approach adding students to classes?

4
Rails
I have `SchoolClass` and `Student` resources. Students belong to classes through `ClassMemberships`. So far students have been added to classes using a grid of class checkboxes on the Edit Student ...

Ruby on rails - what is the best way to add social authentication in the project?

4
Rails
I want to add social authentication in my project like user can also login with Facebook, Github, and Google. I have already added the simple authentication with the devise gem. And now I want to ...

rake db:create fails while following Windows 11 Rails setup guide

6
Rails
As the title states, while following the Windows 11 Rails setup guide I found that whenever I run `rake db:create` it fails with the following error: ``` PG::ConnectionBad: could not connect to ser...
Freibuis replied

Redmine Rails

2
Rails
Hi, i have trouble with ruby ( i dont know any ruby basics but im edititing redmine plugin ). I prepared method def getDateForRedmine( startDay, endDay, limit, date ) datetime = Date...
This Guy replied

How do i can add text-alignment to trix ?

1
Rails
Hello. Im trying to add text-alignment functionnality to a trix rich-text editor in a rails 6 app (its for a blog). I find somes example on stack overflow or trix github about adding colors, h ta...
Brendon Muir replied

How to deposit, withdraw, transfer coins...

0
Rails
Hi Chris,I want to create an app where I can keep track of my cryptocurrencies.This is what I have right now:Coins (can have many wallets)namesymbolWallets (belongs_to coin)(has_many transactions)c...

capistrano deployment fails node and yarn is installed in the server

0
Rails
00:29 bundler:install The Gemfile's dependencies are satisfied, skipping installation 00:30 deploy:assets:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile ...
Tahir Ahmad posted

Extend Sprockets to bundle mustache templates

3
Rails
I'm trying to include some Mustache templates into the main JS bundle. The idea is to take `/app/templates/*.mustache` files, generate a JSON object, and set a window-level variable, like this: ``...
Solved

Turboframes not replacing when placed in another partial

2
Rails
I am trying to create a modal or a drawer which allows me to edit a form. When I place the `turbo_frame_tag` in the same file like so. The form shows up properly when I click the link. **admin/pe...
HP replied

Global User for Multi-Tenancy with Local Tenant Users

2
Rails
I'm watching the rails tutorial on the apartment gem and am curious how to manage my Users, which I've already created through Devise and implemented User Roles. Essentially, I want one Super U...
neiladdams replied

How do I add a /user.json file using devise?

0
Rails
I'm trying to complete the episode 78 "@mentions, autocomplete, notifications, and links" but I'm using Devise. The part I'm stuck on is I can't figure out how to fill in the /users.json ...

How to access a webpage and get its content

2
Rails
Hi, good afternoon. Chirs, I would like to access a website and get its content from its page to create a database with this information. It is about a game so, it is a common information that I ...
Simon P replied

Format of created_at for date range using Searchkick

12
Rails
I am using searchkick to build out a searchform that has a couple different parts to it and searches across multiple models. I am specifically trying to get a date range setup so the user can searc...
Chris Oliver replied
Solved

Webpacker noob - so I saw your video and im using rails 6

3
Rails
how does one go by installing https://github.com/metafizzy/isotope with webpacker? ``` yarn add isotope-layout ``` ``` require('isotope-layout') ``` now I get an error ``` .col-md-9 ...
Gus P replied
Solved

Learning Ruby on Rails? Join our newsletter.

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