Decorators with the Draper Gem Discussion

3
General
How do you handle something where you're using a foreign key, for example a Commentable concern. Comment has a user as commenter. The User class method works fine, but is there a catch all way to a...

Page does not reload, even though javascript comes back with 200

0
General
Chris i followed your tutorial with polymorphic true commenting system, but i ran into an issue with trying to use ajax to refresh the page. The page does not refresh, only when i reload the page a...

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?

Decorators From Scratch Discussion

17
General
Nailed it. Thanks again Chris - could never find a good explanation on Decorators, hence I never used them, will be sure to use them now!
Daniel Jackson replied

Modular Code Organization Discussion

5
General
Awesome class!!!!!
katyswift468 replied

Setup Ubuntu 16.10 Yakkety Yak Discussion

0
General

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

Setup Ubuntu 23.10 Mantic Minotaur Discussion

0
General

Testing API Integrations with WebMock Discussion

3
General
This might help someone watch the video. The website provided (https://jsonip.org/) didn't work for me. The following error occurred: ---- SocketError: Failed to open TCP connection to jsonip.org:...
Chris Oliver replied

Are there more than 2 levels on "Path" section?

1
General
Are there more than 2 levels on "Path" section, which I don't see because I am not Pro member, or there are only 2 available at the moment?
cjilbert504 replied

How do I do the following in a better way?

3
Tips
How can I write the following code in better way ``` if author.present? Article.where(category: params[:category], author_id: author.id) else Article.where(category: params[:category]) end ```
milaradionova replied

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

File to import not found or unreadable: bootstrap-sprockets on rails 5.2.0

4
Gems / Libraries
I have following problem. "File to import not found or unreadable: bootstrap-sprockets." Following gems I have installed gem 'bootstrap' gem 'bootstrap-sass', '~> 3.3.7' gem 'sass-rails', '&g...

Rails for Beginners Part 4: No template for interactive request

10
General
Noob Rails user here. Can't believe I progressed without any problem through all of Chris's install this and that stuff without any issues at all. Then when I added my first view I get the error: N...
AlfredoNarciso replied

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

Failed to Run Localhost because of Run Time Error

0
Testing
I'm getting runtime error whenever I run the localhost. Redis was running but it only loaded the homepage. After about 10 seconds, the server stopped and gave us this error. ``` `__connect_nonblock...

Want to stay up-to-date with Ruby on Rails?

Join 92,299+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.