
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

Active Storage replace attached from a variant
2
Rails
Following the example from the guide, I can create a variant as soon as I upload an image, but I want the main image, the attached blob to be that variant. How can I do it in an easy and clean way?

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

Trying to insert this without refreshing the page ~
0
Rails
I am trying to insert a new comment on to the page without reloading using stimulus and javascript ~ I tried following along Chris in the nested comments video (NOTE: my comment is like his POST no...

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 ...

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

Rails Competency Levels
1
Rails
After completing a bootcamp in Ruby on Rails, it can feel overwhelming deciding where to go from there. The typical advice is build, build, build, but it would be really handy if there was some com...

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

Honest opinion needed
2
Rails
Hi guys, I'd love to learn more on ROR and it appears this is a really comprehensive site, but a lot of the content seems rather dated.
I want an honest opinion on whether a subscription to this s...

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

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